Guest User

Untitled

a guest
May 26th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. # Running a Rails 5 App in Production Locally
  2.  
  3. This is what we need to do:
  4.  
  5. ```shell
  6. export RAILS_ENV=production
  7. rake db:reset
  8. rake assets:precompile
  9. RAILS_SERVE_STATIC_FILES=true
  10. SECRET_KEY_BASE=production rails s
  11. ```
  12.  
  13. 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