Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: gh-pages
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.422 kb
desc 'Start Jekyll server and watch Sass files'
task :serve do
puts "Starting the Jekyll server and watching Sass files."
jekyllPid = Process.spawn('jekyll serve --watch')
sassPid = Process.spawn('sass --watch stylesheets/scss:stylesheets')
trap("INT") {
[jekyllPid, sassPid].each { |pid| Process.kill(9, pid) rescue Errno::ESRCH }
exit 0
}
[jekyllPid, sassPid].each { |pid| Process.wait(pid) }
end
Jump to Line
Something went wrong with that request. Please try again.