Skip to content

Commit 5ef40ff

Browse files
committed
Set config.assets.debug to true in Staging
1 parent 36e6a2c commit 5ef40ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

config/environments/staging.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
# Apache or NGINX already handles this.
2424
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
2525

26+
# Debug mode disables concatenation and preprocessing of assets.
27+
# This option may cause significant delays in view rendering with a large
28+
# number of complex assets.
29+
config.assets.debug = true
30+
31+
# Suppress logger output for asset requests.
32+
#config.assets.quiet = true
33+
2634
# Compress JavaScripts and CSS.
2735
config.assets.js_compressor = Sprockets::UglifierCompressor.new(comments: :copyright)
2836
# config.assets.css_compressor = :sass

0 commit comments

Comments
 (0)