public
Last active

assets lazily compiled in production

  • Download Gist
application.rb
Ruby
1 2 3 4 5 6
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
# Bundler.require *Rails.groups(:assets => %w(development test))
# If you want your assets lazily compiled in production, use this line
Bundler.require(:default, :assets, Rails.env)
end

for those that are troubleshooting this, this snippet of code needs to be updated in application.rb

+1 thanks for this.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.