<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,4 +6,9 @@ it your own, enjoy it. I've added a rackup for those of you that would prefer
 to use an evented server for this application. (It's kinda ideal in this case)
 
 Sadly, the way rubygems packs up binaries, I will need some assistance making
-the rackup work from the default binary install path.
\ No newline at end of file
+the rackup work from the default binary install path.
+
+For more details please see the following guide on GitHub:
+http://github.com/guides/post-receive-hooks
+
+And please, take a look at the source, that's what it's there for.
\ No newline at end of file</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,17 @@
 #!/usr/bin/env ruby
-$0 = &quot;Rack Post-Receive Server :-P&quot;
+trap(:INT) { exit 0 }
+
+defaults = {
+  :Host =&gt; '127.0.0.1',
+  :Port =&gt; 9001
+}
+
+abort %{
+  Usage: #{$0} [--help] [host [port]]
+    The default host is #{defaults[:Host]}
+    The default port is #{defaults[:Port]}
+} if ARGV.find {|a| /--help/ =~ a}
+
 begin
   require 'rubygems'
   require 'github_post_receive_server'
@@ -13,10 +25,16 @@ app = Rack::Builder.new do
   run GithubPostReceiveServer::RackApp.new
 end
 
-trap(:INT) { exit 0 }
+options = {
+  :Host =&gt; ARGV[0] || defaults[:Host], 
+  :Port =&gt; ARGV[1] || defaults[:Port]
+}
+
+puts &quot;Starting server on http://#{options[:Host]}:#{options[:Port]}&quot;
+$0 = &quot;Rack Post-Receive Server (http://#{options[:Host]}:#{options[:Port]}) :-P&quot;
 begin
-  Rack::Handler::Mongrel.run(app, :Port =&gt; 9001)
-rescue
-  puts &quot;Install mongrel for faster http service.&quot;
-  Rack::Handler::Webrick.run(app, :Port =&gt; 9001)
+  Rack::Handler::Mongrel.run(app, options)
+rescue LoadError
+  warn &quot;Install mongrel for faster http service.&quot;
+  Rack::Handler::WEBrick.run(app, options)
 end
\ No newline at end of file</diff>
      <filename>bin/github_post_receive_server</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,11 @@
 #!/usr/bin/env rackup
 begin
   require 'rubygems'
-  require 'github_post_commit_server'
+  require 'github_post_receive_server'
 rescue LoadError
-  require File.dirname(__FILE__) + '/../lib/github_post_commit_server'
+  require File.dirname(__FILE__) + '/../lib/github_post_receive_server'
 end
 
 use Rack::CommonLogger
 use Rack::Lint
-run GithubPostCommitServer::RackApp.new
\ No newline at end of file
+run GithubPostReceiveServer::RackApp.new
\ No newline at end of file</diff>
      <filename>bin/github_post_receive_server.ru</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9d77857a9f9c0ae9e0a17b45e66972a300c02219</id>
    </parent>
  </parents>
  <author>
    <name>James Tucker</name>
    <email>raggi@mbk.local</email>
  </author>
  <url>http://github.com/raggi/github_post_receive_server/commit/f3943b053811c3cd8c3ad98e9025243677aeff03</url>
  <id>f3943b053811c3cd8c3ad98e9025243677aeff03</id>
  <committed-date>2008-05-10T18:16:21-07:00</committed-date>
  <authored-date>2008-05-10T18:16:21-07:00</authored-date>
  <message> * Fixed up some more small things.
 * Added a link to the GitHub guide in the README</message>
  <tree>ee50e95500213281b60646b4220cd42cdf733e25</tree>
  <committer>
    <name>James Tucker</name>
    <email>raggi@mbk.local</email>
  </committer>
</commit>
