Skip to content

Instantly share code, notes, and snippets.

@sentientmonkey
Last active December 19, 2015 01:09
Show Gist options
  • Select an option

  • Save sentientmonkey/5873438 to your computer and use it in GitHub Desktop.

Select an option

Save sentientmonkey/5873438 to your computer and use it in GitHub Desktop.
a static file webserver from ruby
require 'rubygems'
require 'rack'
app = Rack::Builder.new
app.run Rack::Directory.new(Dir.pwd)
Rack::Server.start :app => app, :Port => 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment