From 0af625453d040bb3dc671390f969ff088db3971d Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Thu, 25 Jan 2018 14:03:38 -0500 Subject: [PATCH] Use correct URL --- Rakefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index d4420a8..550d038 100644 --- a/Rakefile +++ b/Rakefile @@ -5,15 +5,20 @@ task default: %w[build] desc "Build the site" task :build do + puts "Deploying for: #{site_url}" config = Jekyll.configuration(config_params) site = Jekyll::Site.new(config) Jekyll::Commands::Build.build site, config end def config_params - if ENV["URL"] - { url: ENV["URL"] } + if site_url + { url: site_url } else {} end end + +def site_url + ENV["DEPLOY_URL"] +end