Last active
December 19, 2015 01:09
-
-
Save sentientmonkey/5873438 to your computer and use it in GitHub Desktop.
a static file webserver from ruby
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
| 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