From 060d4b6a0c70b0374e35e262f32e7f6f74aabdac Mon Sep 17 00:00:00 2001 From: Tom Naessens Date: Wed, 2 Sep 2015 14:05:25 +0200 Subject: [PATCH] Fix asset pipeline stuff --- config/environments/production.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 1e652ca..2c63bb2 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -78,5 +78,12 @@ Rails.application.configure do Paperclip.options[:command_path] = "/usr/local/bin/" - config.action_mailer.default_url_options = { host: 'TODO' } + # Help the asset pipeline for staging + config.x.host = 'zeus.ugent.be' + config.relative_url_root = "/tap" + + config.action_mailer.default_url_options = { + host: config.x.host, + script_name: config.relative_url_root, + } end