Skip to content

Offline Mode #4

@marcqualie

Description

@marcqualie

The remote .env file should be downloadable for offline use. Local files should also be pushable back to the remote once a network connection is available to sync any changes made.

Offline mode should only be allowed in development environment to avoid accidental ENV dumping or overriding on production servers.

rake envoku:download --url s3://user:pass@bucket/filename.env --path .env
rake envoku:upload --url s3://user:pass@bucket/filename.env --path .env

If no --url argument is passed, it should default to ENVOKU_URL environment variable if one exists then, finally, raise an exception that no remote URL can be detected.

--path will default to .env to allow developers to download the file wherever they want.

Upload will work in a similar fashion to download, however extra confirmation should be presented as it is a destructive remote action. A diff would ideally be displayed to show the changes made locally before overwrite is confirmed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions