small medium large xlarge

Billgathen_pragsmall
04 Dec 2009, 18:12
Bill Gathen (28 posts)

Auto-reload behavior disappeared from development mode in Sinatra 0.9.2. rtomayko has created a tool called shotgun (http://github.com/rtomayko/shotgun) that fires an instance of mongrel (thin, webrick, whatever) and brokers the connection, grabbing the files live every time.

sudo gem install shotgun

then

shotgun shorten.rb

supposedly gets you going, but I had to do it like this on Snow Leopard, to combat a Mongrel “initialize_without_backlog” SocketError:

shotgun -o 0.0.0.0 -p 4567 shorten.rb

Bcc6cb46c65d8382cde6630962714eb3_pragsmall
08 Jan 2010, 08:42
Hunter Gillane (2 posts)

Bill -

The default host for shotgun is 0.0.0.0 and the default port is 9393. You should be able to start shotgun without specifying the host:

shotgun -p 4567 shorten.rb

You must be logged in to comment