Skip to content

Instantly share code, notes, and snippets.

@makeittotop
Created March 23, 2015 16:29
Show Gist options
  • Select an option

  • Save makeittotop/c68400ade921ec32fdca to your computer and use it in GitHub Desktop.

Select an option

Save makeittotop/c68400ade921ec32fdca to your computer and use it in GitHub Desktop.
A simple rack web server running on port 7777
# sample rack_app.rb
require 'rack'
app = Proc.new do |env|
['200', {'Content-Type' => 'text/html'}, ['A barebones rack app.']]
end
Rack::Handler::WEBrick.run app, :Port => 7777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment