I have my web.rb
where I have
require 'rubygems'
require 'sinatra'
require "sinatra/reloader"
Then I start my web application by double click on the web.rb short cut. After any change in web.rb I have to exit the sinatra and run it again.
I thought that "sinatra/reloader" would help me not to manual reaload.
configuration (MS Windows)
开发者_StackOverflowruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
sinatra (1.2.6, 1.0)
- sinatra-advanced-routes (0.5.1)
- sinatra-reloader (0.5.0)
- sinatra-sugar (0.5.1, 0.5.0)
- thin (1.2.7 x86-mswin32)
register Sinatra::Reloader
I changed to rack-reloader months back, realized it didn't work well even with hacks
switched back and forgot to use register
the drawback of sinatra sometimes is the slightly more wisdom-of-crowds documentation
if I start my web application from dos prompt via "ruby web.rb" everything works fine
if I start my web application
- via double click web.rb or
- from batch file
the application starts but sinatra-reload doesn't work
@nash thank you for your help
精彩评论