-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
APP_ENV overrides RAILS_ENV #4560
Comments
Correct. By design. |
If Rails does not use APP_ENV, it is not correct, it is unexpected behavior and it is not documented. It is at least an incompatibility with the most current Rails. |
Then let’s get it documented. 💪🏻
… On May 7, 2020, at 14:41, Prakash ***@***.***> wrote:
If Rails does not use APP_ENV, it is not correct, it is unexpected behavior and it is not documented. It is at least an incompatibility with the most current Rails.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thank you 🙏 |
@mperham This is causing issues in our app and will require a change to a number of areas - is there a reason we can't just simplify this to a |
@TheKidCoder Have you tried |
This is also causing an issue for me as I use |
@stevehanson Is there some reason you can't use |
We have a script to launch sidekiq that is used in different environments and doesn't have access to the More generally, it seems like if Sidekiq uses a generic name like |
I've opened an issue with puma about the variable. puma/puma#2692 |
Ruby version: 2.7.0
Sidekiq / Pro / Enterprise version(s): 6.0.5
https://github.com/mperham/sidekiq/blob/22e812d3f1ae9a3e5faa79637a61705186d6961e/lib/sidekiq/cli.rb#L244
Although APP_ENV will possibly become a default soon, a user may inadvertently or unintentionally overwrite RAILS_ENV by setting APP_ENV.
The text was updated successfully, but these errors were encountered: