#11. Run rails app in production mode

Check in produciton.rb, it should be false,

config.assets.compile = false 


precompile the assets,

RAILS_ENV=production bundle exec rake assets:precompile


It should be set in the env file as true

config.public_file_server.enabled = true


Then run server as,

rails s -e production

or

RAILS_ENV=production rails s

Comments

Popular posts from this blog

#6. Fetch time in rails

#8. nginx+puma deployment using capistrano