Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Running a Rails 5 App in Production Locally

Running a Rails 5 App in Production Locally

This is what we need to do:

export RAILS_ENV=production
rake db:reset
rake assets:precompile
RAILS_SERVE_STATIC_FILES=true
SECRET_KEY_BASE=production rails s

We might need to comment out the lines with the username and password for the production database in config/database.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.