From b023d925e5eacb0845de124ebb9e70e02ea0303e Mon Sep 17 00:00:00 2001 From: redfast00 Date: Thu, 26 Jul 2018 17:28:08 +0200 Subject: [PATCH] Fix relative url --- config/deploy/production.rb | 1 - config/environments/production.rb | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config/deploy/production.rb b/config/deploy/production.rb index 0a11c1f..3fde857 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -7,4 +7,3 @@ server 'tap.zeus.gent', user: 'tap', roles: %w{web app db}, ssh_options: { set :rails_env, 'production' set :rbenv_type, :system set :rbenv_ruby, File.read('.ruby-version').strip -set :default_env, 'RAILS_RELATIVE_URL_ROOT' => '/' diff --git a/config/environments/production.rb b/config/environments/production.rb index a59f0bd..9bf8711 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -79,13 +79,13 @@ Rails.application.configure do Paperclip.options[:command_path] = "/usr/local/bin/" # Help the asset pipeline for staging - config.x.host = 'zeus.ugent.be' - config.relative_url_root = "/tap" + config.x.host = 'tap.zeus.gent' + config.relative_url_root = "/" config.action_mailer.default_url_options = { host: config.x.host, script_name: config.relative_url_root, } - config.api_url = "https://zeus.ugent.be/tab" + config.api_url = "https://tap.zeus.gent" end