Skip to content

Instantly share code, notes, and snippets.

@danidiaz
Created November 9, 2013 10:16
Show Gist options
  • Select an option

  • Save danidiaz/7383997 to your computer and use it in GitHub Desktop.

Select an option

Save danidiaz/7383997 to your computer and use it in GitHub Desktop.
Drop dead easy way to serve a directory through HTTP using Ruby.
require 'rack'
foo = Rack::Directory.new("C:/Users/ZZZZ/.m2")
Rack::Server.start :app => foo, :Port => 9292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment