From 84170254e4eefe74f2a14f1e395c22ec3ca40638 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 28 Jun 2015 10:35:44 +0100 Subject: [PATCH] Use a fixed name for the asset manifest Because we deploy by updating an existing environment the default sprockets strategy gives us multiple randomly named manifest files and it will then pick one arbitrarily when starting up. --- config/initializers/assets.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index ffc283931..81124455d 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -3,6 +3,9 @@ # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = "1.0" +# Location of manifest file. +Rails.application.config.assets.manifest = Rails.root.join("tmp/manifest.json") + # Add additional assets to the asset load path # Rails.application.config.assets.paths << Emoji.images_path -- 2.43.2