]> git.openstreetmap.org Git - rails.git/commitdiff
Use a fixed name for the asset manifest
authorTom Hughes <tom@compton.nu>
Sun, 28 Jun 2015 09:35:44 +0000 (10:35 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 28 Jun 2015 09:35:44 +0000 (10:35 +0100)
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

index ffc28393180b9a50bba44748b39092d9512999fd..81124455d1fc6c8434adf972c2ce65f81108d273 100644 (file)
@@ -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