From b93d0bf68c25d266c6106e09bafbfd565296b76a Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 6 Jan 2018 18:12:37 +0100 Subject: Allways pick up relative url for asset prefix. --- config/application.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/application.rb') diff --git a/config/application.rb b/config/application.rb index 7006797..d3de916 100644 --- a/config/application.rb +++ b/config/application.rb @@ -64,5 +64,7 @@ module BetaWebApp # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' + + config.assets.prefix = "#{ENV['RAILS_RELATIVE_URL_ROOT']}/asserts" end end -- cgit v1.2.3