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

Question: How to handle other environments? #58

Open
MincheolC opened this issue Feb 29, 2020 · 3 comments
Open

Question: How to handle other environments? #58

MincheolC opened this issue Feb 29, 2020 · 3 comments
Labels
question Further information is requested

Comments

@MincheolC
Copy link

Hi~. You said that "Put a .env file, that must never be committed" in your article.
Then how do you handle other environments like production, test, etc??

If each branch has different .env and not committed, then how do other members know .env info? and how do you deploy them?

@devskope
Copy link

devskope commented Mar 7, 2020

logically, a .env-sample file could be committed showing the variables that should be set in real environments.

@jackson-elfers
Copy link
Contributor

There should be a list of required .env keys (without values) as a courtesy. When we're making changes to the .env we should be aware to document which keys we've added or subtracted whether it be on the readme or a .env-sample as @devskope suggests. For deployment, it depends upon the hosting, usually it's a matter of supplying our production .env for our application to use. Keep your dev/prod .env in a secure place at all times and far away from github.

@MincheolC
Copy link
Author

@jackson-elfers @devskope I see. Thanks for your reply~:D

@santiq santiq added the question Further information is requested label Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants