forked from External/greenlight
make upgrading from 1.0 easier
This commit is contained in:
@ -87,6 +87,7 @@ Rails.application.configure do
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
# Set the relative url root for deployment to a subdirectory.
|
||||
config.relative_url_root = "/"
|
||||
config.relative_url_root = ENV['RELATIVE_URL_ROOT'] if ENV['RELATIVE_URL_ROOT'].present?
|
||||
if ENV['RELATIVE_URL_ROOT'] != "/"
|
||||
config.relative_url_root = ENV['RELATIVE_URL_ROOT'] || "/b"
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user