Created
March 18, 2015 23:17
-
-
Save funkfinger/c94a9cab44c8c666bcab to your computer and use it in GitHub Desktop.
simple Jekyll Rakefile to create, build, deploy, etc...
This file contains 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
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