From: Tom Hughes Date: Sun, 28 Jun 2015 09:35:44 +0000 (+0100) Subject: Use a fixed name for the asset manifest X-Git-Tag: live~4161 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/84170254e4eefe74f2a14f1e395c22ec3ca40638?ds=sidebyside 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. --- 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