Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline Mode #4

Open
marcqualie opened this issue Oct 25, 2016 · 0 comments
Open

Offline Mode #4

marcqualie opened this issue Oct 25, 2016 · 0 comments

Comments

@marcqualie
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant