Fix relative url

This commit is contained in:
redfast00 2018-07-26 17:28:08 +02:00
parent 8ca507a38c
commit b023d925e5
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C
2 changed files with 3 additions and 4 deletions

View file

@ -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' => '/'

View file

@ -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