Skip to content

Instantly share code, notes, and snippets.

@knicklabs
Created August 17, 2013 18:43
Show Gist options
  • Save knicklabs/6258218 to your computer and use it in GitHub Desktop.
Save knicklabs/6258218 to your computer and use it in GitHub Desktop.
My Rakefile for Jekyll projects.
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