Skip to content

Instantly share code, notes, and snippets.

@tobyhede
Created September 15, 2011 02:14
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 tobyhede/1218347 to your computer and use it in GitHub Desktop.
Save tobyhede/1218347 to your computer and use it in GitHub Desktop.
rserve

In .bash_profile (or what have you)

function rserve () {
    ruby -rwebrick -e"s = WEBrick::HTTPServer.new(:Port => 3000,  :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment