Add support for RAILS_SERVE_STATIC_FILES to production.rb an use it with Docker
This commit is contained in:
parent
42b789d381
commit
d6325de35c
2 changed files with 3 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ Foodsoft::Application.configure do
|
|||
# config.action_dispatch.rack_cache = true
|
||||
|
||||
# Disable Rails's static asset server (Apache or nginx will already do this).
|
||||
config.serve_static_files = false
|
||||
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
||||
|
||||
# Compress JavaScripts and CSS.
|
||||
config.assets.js_compressor = :uglifier
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue