Skip to content
Browse files

prefer thin over webrick if you got it

Signed-off-by: Ryan Tomayko <rtomayko@gmail.com>
  • Loading branch information...
1 parent 0936f57 commit 69bbe41d23e1bfb66f0017591d179971bf050119 @josh josh committed with Sep 6, 2009
Showing with 7 additions and 1 deletion.
  1. +7 −1 bin/shotgun
View
8 bin/shotgun
@@ -2,7 +2,13 @@
require 'optparse'
-server = nil
+begin
+ require 'thin'
+ server = 'thin'
+rescue LoadError
+ server = nil
+end
+
env = ENV['RACK_ENV'] || 'development'
browse = false
options = {:Port => 9393, :Host => 'localhost', :AccessLog => []}

0 comments on commit 69bbe41

Please sign in to comment.
Something went wrong with that request. Please try again.