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
.