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

Add support for APP_ENV environment variable #2702

Commits on Sep 20, 2021

  1. Add support for APP_ENV environment variable

    Using APP_ENV to set the environment is supported by Sinatra and
    Sidekiq, so it makes sense to support the same behavior in Puma.
    
    Like Sidekiq, APP_ENV will take precedence over RACK_ENV and RAILS_ENV.
    APP_ENV defers to any argument passed via the --environment flag.
    
    Closes puma#2692
    jacobherrington committed Sep 20, 2021
    Copy the full SHA
    ff6f08c View commit details
    Browse the repository at this point in the history