Skip to content

Instantly share code, notes, and snippets.

@rra3
Created March 27, 2014 19:27
Show Gist options
  • Select an option

  • Save rra3/9816096 to your computer and use it in GitHub Desktop.

Select an option

Save rra3/9816096 to your computer and use it in GitHub Desktop.
desc "kill the server"
task :terminate do
puts "terminating rails server"
sh "kill -INT $(pgrep ruby)"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment