Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Running a Rails 5 App in Production Locally
- This is what we need to do:
- ```shell
- 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`.
Add Comment
Please, Sign In to add comment