1
0
mirror of https://github.com/danbee/danbarber.me synced 2025-03-04 08:59:10 +00:00

Use URL in production

This commit is contained in:
Daniel Barber 2018-01-25 15:48:22 -05:00
parent 3d6925b2b2
commit 6a252f5282
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -16,5 +16,9 @@ def config_params
end
def site_url
ENV["DEPLOY_URL"]
if ENV["CONTEXT"] == "production"
ENV["URL"]
else
ENV["DEPLOY_URL"]
end
end