Skip to content

Instantly share code, notes, and snippets.

@geraint0923
Forked from chyh1990/gist:9108974
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save geraint0923/9109650 to your computer and use it in GitHub Desktop.

Select an option

Save geraint0923/9109650 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rack'
include Rack
port = (ARGV[0] || 8080 ).to_i
Handler::Thin.run Builder.new { run Directory.new ''}, :Port=>port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment