Skip to content

Commit a37a8db

Browse files
committed
Changed configuration app production environment to no longer compile assets at run-time. These will eb precompiled properly from now on.
1 parent 35a2101 commit a37a8db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Configuration App/config/environments/production.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222

2323
# Disable serving static files from the `/public` folder by default since
2424
# Apache or NGINX already handles this.
25-
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
25+
# config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
2626

2727
# Compress JavaScripts and CSS.
2828
config.assets.js_compressor = :uglifier
2929
# config.assets.css_compressor = :sass
3030

3131
# Do not fallback to assets pipeline if a precompiled asset is missed.
32-
config.assets.compile = true
32+
config.assets.compile = false
3333

3434
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
3535
# yet still be able to expire them through the digest params.

0 commit comments

Comments
 (0)