Last active
January 25, 2018 23:09
-
-
Save danbee/077c649b7c1350801ae17667e39c8ac2 to your computer and use it in GitHub Desktop.
Rakefile for Jekyll that reads environment variables into config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'jekyll' | |
task default: %w[build] | |
desc "Build the site" | |
task :build do | |
config = Jekyll.configuration({ | |
url: ENV["SITE_URL"], | |
}) | |
site = Jekyll::Site.new(config) | |
Jekyll::Commands::Build.build(site, config) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment