Fix relative url
This commit is contained in:
parent
8ca507a38c
commit
b023d925e5
2 changed files with 3 additions and 4 deletions
|
@ -7,4 +7,3 @@ server 'tap.zeus.gent', user: 'tap', roles: %w{web app db}, ssh_options: {
|
||||||
set :rails_env, 'production'
|
set :rails_env, 'production'
|
||||||
set :rbenv_type, :system
|
set :rbenv_type, :system
|
||||||
set :rbenv_ruby, File.read('.ruby-version').strip
|
set :rbenv_ruby, File.read('.ruby-version').strip
|
||||||
set :default_env, 'RAILS_RELATIVE_URL_ROOT' => '/'
|
|
||||||
|
|
|
@ -79,13 +79,13 @@ Rails.application.configure do
|
||||||
Paperclip.options[:command_path] = "/usr/local/bin/"
|
Paperclip.options[:command_path] = "/usr/local/bin/"
|
||||||
|
|
||||||
# Help the asset pipeline for staging
|
# Help the asset pipeline for staging
|
||||||
config.x.host = 'zeus.ugent.be'
|
config.x.host = 'tap.zeus.gent'
|
||||||
config.relative_url_root = "/tap"
|
config.relative_url_root = "/"
|
||||||
|
|
||||||
config.action_mailer.default_url_options = {
|
config.action_mailer.default_url_options = {
|
||||||
host: config.x.host,
|
host: config.x.host,
|
||||||
script_name: config.relative_url_root,
|
script_name: config.relative_url_root,
|
||||||
}
|
}
|
||||||
|
|
||||||
config.api_url = "https://zeus.ugent.be/tab"
|
config.api_url = "https://tap.zeus.gent"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue