Skip to content

Instantly share code, notes, and snippets.

@JStans12
Last active January 3, 2017 18:40
Show Gist options
  • Save JStans12/3330089da1f732f65127fbd582bffbda to your computer and use it in GitHub Desktop.
Save JStans12/3330089da1f732f65127fbd582bffbda to your computer and use it in GitHub Desktop.

install figaro:

gem 'figaro'

generate secret key:

rake secret

in application.yml:

production:
  SECRET_KEY_BASE: <YOUR SECRET>
  RAILS_SERVE_STATIC_ASSETS: true

precompile assets:

rake assets:precompile

clobber em:

rake assets:clobber

start production server:

RAILS_ENV=production rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment