Skip to content

Instantly share code, notes, and snippets.

@larrywright
Forked from ngauthier/Procfile
Created February 25, 2012 16:29
Show Gist options
  • Save larrywright/1909362 to your computer and use it in GitHub Desktop.
Save larrywright/1909362 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