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 ++ config/environments/prodtest.rb | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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 diff --git a/config/environments/prodtest.rb b/config/environments/prodtest.rb index 0bcf9e2..e39ab27 100644 --- a/config/environments/prodtest.rb +++ b/config/environments/prodtest.rb @@ -25,8 +25,6 @@ BetaWebApp::Application.configure do # Defaults to nil and saved in location specified by config.assets.prefix # config.assets.manifest = YOUR_PATH - config.assets.prefix = '/beta/assets' - # Specifies the header that your server uses for sending files # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx -- cgit v1.2.3