Fixed assets serving
This commit is contained in:
1 parent
0bf02b8a65
commit
4d7c8f949b
2 files changed
+3
-1
No files matched your search
@@ -58,5 +58,7 @@ module Community
|
||||
|
||||
# Version of your assets, change this if you want to expire all your assets
|
||||
config.assets.version = '1.0'
|
||||
|
||||
config.assets.precompile += ['*.css', '*.js']
|
||||
end
|
||||
end
|
||||
@@ -9,7 +9,7 @@ Community::Application.configure do
|
||||
config.action_controller.perform_caching = true
|
||||
|
||||
# Disable Rails's static asset server (Apache or nginx will already do this)
|
||||
config.serve_static_assets = false
|
||||
config.serve_static_assets = true
|
||||
|
||||
# Compress JavaScripts and CSS
|
||||
config.assets.compress = true
|
||||
|
||||
Reference in new issue
Block a user