Add downloader for upload files outwards of public folder

This commit is contained in:
Xavier J 2016-01-05 15:53:01 +01:00
parent 4961f39a71
commit e7570564f8
2 changed files with 44 additions and 0 deletions

View file

@ -26,5 +26,13 @@ module TPS
# Do not swallow errors in after_commit/after_rollback callbacks.
config.active_record.raise_in_transactional_callbacks = true
if Rails.env.production?
URL = "https://tps.apientreprise.fr/"
elsif Rails.env.staging?
URL = "https://tps-dev.apientreprise.fr/"
else
URL = "http://localhost:3000/"
end
end
end