Skip to content

Instantly share code, notes, and snippets.

@danbee
Last active January 25, 2018 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danbee/077c649b7c1350801ae17667e39c8ac2 to your computer and use it in GitHub Desktop.
Save danbee/077c649b7c1350801ae17667e39c8ac2 to your computer and use it in GitHub Desktop.
Rakefile for Jekyll that reads environment variables into config
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