Skip to content

Instantly share code, notes, and snippets.

@kuon
Created June 25, 2014 10:55
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 kuon/7de6b64952e4b43939d9 to your computer and use it in GitHub Desktop.
Save kuon/7de6b64952e4b43939d9 to your computer and use it in GitHub Desktop.
Guard with rack process
guard 'nanoc' do
watch('nanoc.yaml')
watch('Rules')
watch(%r{^(content|layouts|static|lib)/.*$})
callback(:start_begin) do
fork do
exec 'bundle exec rackup -p 4567'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment