Ph values

Stephan on testing, software (good and bad), Ruby and the world at large

Sinatra and reloading

Posted by Stephan on 25. May 2009

Since its 0.9.2 release on 18th of May 2009, Sinatra doesn’t automatically reload files anymore – not even in development mode.

To achieve this use ‘shotgun’

sudo gem install shotgun

and then start the server using:

shotgun <your_applicationname>.rb

The effect is essentially the same (apart from avoiding the issues the ‘traditional’ way of reloading apparently had – which is why it was removed). 

Thanks for pointing this out in this thread @ rubyforen.de.

3 Responses to “Sinatra and reloading”

  1. Justin said

    Thanks for this. I was going nuts trying to figure out why Sinatra wasn’t reloading.

  2. ian said

    very nice.. very nice!

  3. It was my first try of sinatra and I was like “How do I make this stuff to development mode…” :) It appears that there’s nothing you can’t fix with a kick to the door and a Shotgun :)

    Thanks for the tip paired with livereload it made a nice couple :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.