Skip to content

Instantly share code, notes, and snippets.

@chyh1990
Created February 20, 2014 08:15
Show Gist options
  • Select an option

  • Save chyh1990/9108974 to your computer and use it in GitHub Desktop.

Select an option

Save chyh1990/9108974 to your computer and use it in GitHub Desktop.
simple ruby thin server
#!/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