From 74996c0dffdf991da89e5e71fa5105171e4fe707 Mon Sep 17 00:00:00 2001 From: Alex Coles Date: Thu, 22 May 2014 09:41:04 +0200 Subject: [PATCH 1/2] Temporarily disable digest assets in production Rails 4's asset pipeline only pre-compiles assets with digest. This causes two issues: - `font-url` helper in Sass is not referencing assets with the digest. This may be a manifestation of the same problem worked- around in b0f758fc. - various plugins appear not to be using the `asset_path` helpers. Signed-off-by: Alex Coles --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index f861f54850..3063fe1b36 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -53,7 +53,7 @@ OpenProject::Application.configure do config.assets.compile = false # Generate digests for assets URLs - config.assets.digest = true + config.assets.digest = false # Defaults to nil and saved in location specified by config.assets.prefix # config.assets.manifest = YOUR_PATH From 3a2185ed062d067d937e9c81079feb3baf3e33e7 Mon Sep 17 00:00:00 2001 From: Alex Coles Date: Thu, 22 May 2014 10:27:50 +0200 Subject: [PATCH 2/2] Revert "Temporarily disable digest assets in production" This setting is not respected when precompiling. This reverts commit 74996c0dffdf991da89e5e71fa5105171e4fe707. --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 3063fe1b36..f861f54850 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -53,7 +53,7 @@ OpenProject::Application.configure do config.assets.compile = false # Generate digests for assets URLs - config.assets.digest = false + config.assets.digest = true # Defaults to nil and saved in location specified by config.assets.prefix # config.assets.manifest = YOUR_PATH