Skip to content

Instantly share code, notes, and snippets.

@funkfinger
Created March 18, 2015 23:17
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 funkfinger/c94a9cab44c8c666bcab to your computer and use it in GitHub Desktop.
Save funkfinger/c94a9cab44c8c666bcab to your computer and use it in GitHub Desktop.
simple Jekyll Rakefile to create, build, deploy, etc...
task :server do
sh 'bundle exec foreman run jekyll server --watch'
end
task :build do
sh 'bundle exec foreman run jekyll build'
end
task :deploy do
sh 'bundle exec foreman run jekyll build'
sh 'bundle exec foreman run bundle exec s3_website push'
end
task :post do
STDOUT.puts "What do you want to name this post?"
input = STDIN.gets.strip
sh "bundle exec foreman run bin/jk #{input}"
end
task :default => :server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment