Search code examples
ruby-on-railsforeman

How to start foreman in production mode(ENV)


Is it possible run the rails foreman in production mode in local terminal?


Solution

  • Yes. Set the RAILS_ENV variable to production.

    $ RAILS_ENV="production" foreman start