-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
.env not working in production #651
Comments
Thanks for opening this issue! 🌸 We use the We want to discourage people from having production environment variables in source control. I think this experience can be improved though, since a lot of people run into this problem. At the very least, this behavior should be explicity documented, but ideally we'd be able to show an error to the user to help them. Any ideas? |
Humm I see. That's fair enough. But, as you said, it would be nice to have a documentation mentioning a good way to set ENV variables in production, without using Also, there are some places where documentation mention that What do you think? |
Just added an issue to create an Environment Variables guide :) hanami/hanami.github.io#224 Feel free to open a PR at https://github.com/hanami/hanami.github.io/ for any error you see in the Guides, and in each repo if it's in Rdoc/comments :) Also, I'd probably recommend using |
What if folks have |
@rafaels88 Hi 😄 . I think it's just a matter of documentation, we can write a clear statement about the We can cover most common vendors (Heroku, AWS) too. But we expect people to understand their deployment environment. @b264 Hey :) I think that adding We should educate rather than forbid. I'm closing this as it isn't a bug. |
I just updated my Hanami application from
0.7.0
to0.8.0
and.env
file is not been loading in production. After reviewingenvironment.rb
file in0.8.0
version, I saw this line:So, I tried to change my
.env
file to.env.production
and it worked.It seems that the solution for this is pretty simple. =)
The text was updated successfully, but these errors were encountered: