We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

suresh maharjan • 8 years ago

Hi ,

In development environment the values are read from .env file. But as .env file is not loaded in the prod. So from where these environment variables are read in prod?

39digits • 8 years ago

That really varies depending on your own production environment setup.

I did a quick check to find a StackOverflow article that might explain setting up Environment Variables in Linux in a helpful way without making this reply super long.

Here are links to some of the more common providers:
- Heroku
- AWS Lambda
- AWS ElasticBeanstalk

I've not yet had the time to properly tinker with Docker (but it's definitely in my backlog of things to get through real soon) so I wouldn't feel comfortable telling you the best way to handle environment variables there. I'm sure the documentation would help greatly.