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