Skip to content

Instantly share code, notes, and snippets.

@adacosta
Created November 4, 2009 22:07
Show Gist options
  • Save adacosta/226430 to your computer and use it in GitHub Desktop.
Save adacosta/226430 to your computer and use it in GitHub Desktop.
['rubygems', 'rack'].each { |lib| require lib }
app = lambda { |env| [200, {'Content-Type' => 'text/html'}, env.inspect] }
Rack::Handler::WEBrick.run(app, :Port => 4004)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment