Skip to content

Instantly share code, notes, and snippets.

@ngauthier
Created February 24, 2012 22:36
Show Gist options
  • Save ngauthier/1904246 to your computer and use it in GitHub Desktop.
Save ngauthier/1904246 to your computer and use it in GitHub Desktop.
Heroku Serving a Directory
web: ruby serve.rb $PORT
require 'webrick'
s = WEBrick::HTTPServer.new(:Port => ARGV[0], :DocumentRoot => Dir.pwd); trap("INT") { s.shutdown }; s.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment