aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-01-06 18:12:37 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-01-06 18:12:37 +0100
commitb93d0bf68c25d266c6106e09bafbfd565296b76a (patch)
tree13b07414ab6b45bbe87e2d2cdbc944e7158e0a45 /config
parent9c22d9e8978b836da2fdaa3bd3d05fcff0124b91 (diff)
downloadhmnoweb-b93d0bf68c25d266c6106e09bafbfd565296b76a.tar.gz
hmnoweb-b93d0bf68c25d266c6106e09bafbfd565296b76a.tar.bz2
hmnoweb-b93d0bf68c25d266c6106e09bafbfd565296b76a.zip
Allways pick up relative url for asset prefix.
Diffstat (limited to 'config')
-rw-r--r--config/application.rb2
-rw-r--r--config/environments/prodtest.rb2
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