0

I'm just getting started with Sinatra. I'm running Ruby 1.9.2 on Ubuntu. After my first issue, I've run into another one:

When I follow the simple sample application instructions at sinatra.rubyforge.org/doc/, I modify my source file, but the changes aren't apparent until I restart Sinatra - even though the tutorial mentions there is no need to restart.

How can I edit my source and view the results without having to restart Sinatra every time?

Community
  • 1
  • 1
Craig Smitham
  • 3,395
  • 4
  • 31
  • 38
  • 2
    possible duplicate of [How to get Sinatra to auto-reload the file after each change?](http://stackoverflow.com/questions/1247125/how-to-get-sinatra-to-auto-reload-the-file-after-each-change) – miku Oct 20 '10 at 16:44
  • I posted my answer to question at link above. – Nakilon Oct 20 '10 at 16:54

1 Answers1

2

The book has something on the topic now: http://sinatra-book.gittr.com/#automatic_code_reloading

Konstantin Haase
  • 25,687
  • 2
  • 57
  • 59