gem 'rails_12factor'to your Gemfile. This will add error logging and the ability for your app to serve static assets.
RAILS_ENV=production rake db:create db:migrate db:seed
rake secretand copy the output
- From the command line:
- To precompile your assets, run
rake assets:precompile. This will create a folder
public/assetsthat contains all of your assets.
RAILS_ENV=production rails sand you should see your app.
Remember to clobber your assets (
rake assets:clobber) and re-precompile (
rake assets:precompile) if you make changes.