Allow Rails to serve static assets by default, in production mode...
... in order to allow running successfully in production mode locally via `rails s -e production`
This commit is contained in:
parent
a96c9fddaa
commit
fbe97485e9
1 changed files with 3 additions and 2 deletions
|
|
@ -14,8 +14,9 @@ Osem::Application.configure do
|
|||
# Rake tasks automatically ignore this option for performance.
|
||||
config.eager_load = true
|
||||
|
||||
# Disable Rails's static asset server (Apache or nginx will already do this)
|
||||
config.serve_static_assets = false
|
||||
# Enable Rails's static asset server
|
||||
# Set to false if serving directly through your web server, or using an asset host
|
||||
config.serve_static_assets = true
|
||||
# Compress JavaScripts and CSS
|
||||
config.assets.compress = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue