Created
October 2, 2012 15:23
-
-
Save hashrocketeer/3820080 to your computer and use it in GitHub Desktop.
Free up port 3000
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
#!/usr/bin/env ruby | |
pid = `lsof -t -i tcp:3000`.to_i | |
Process.kill 'INT', pid if pid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment