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.
|
# Rake tasks automatically ignore this option for performance.
|
||||||
config.eager_load = true
|
config.eager_load = true
|
||||||
|
|
||||||
# Disable Rails's static asset server (Apache or nginx will already do this)
|
# Enable Rails's static asset server
|
||||||
config.serve_static_assets = false
|
# Set to false if serving directly through your web server, or using an asset host
|
||||||
|
config.serve_static_assets = true
|
||||||
# Compress JavaScripts and CSS
|
# Compress JavaScripts and CSS
|
||||||
config.assets.compress = true
|
config.assets.compress = true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue