Blog Archives

Rails production environment assets loading

In Gemfile add: gem ‘rails_12factor’ In config/environments/production.rb add config.assets.compile = false #To stop run time assets precompile in production. config.assets.digest = true #To access assets which are precompiled and in their names have appendend digets by rails config.cache_classes = true

Tagged with: ,
Posted in production, Ruby on Rails
StackOverFlow
Categories
Archives