Created
August 17, 2013 18:43
-
-
Save knicklabs/6258218 to your computer and use it in GitHub Desktop.
My Rakefile for Jekyll projects.
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
task :server do | |
server = Process.spawn('jekyll serve --watch') | |
compass = Process.spawn('compass watch') | |
trap('INT') do | |
[server, compass].each { |pid| Process.kill(9, pid) rescue Errno::ESRCH } | |
exit 0 | |
end | |
[server, compass].each { |pid| Process.wait(pid) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment