I am using
# my_app.rb
load 'index.rb'
and start the sever like this
ruby my_app.rb
but it never reload any changes I made in index page.
Did I miss anything here?
I am using
# my_app.rb
load 'index.rb'
and start the sever like this
ruby my_app.rb
but it never reload any changes I made in index page.
Did I miss anything here?
You can use the
rerun
gem.OR if you are using rackup
When you run the application with Passenger Standalone, just create a
tmp/always_restart
file:See Passenger documentation for more info.
See the Sinatra FAQ,
"How do I make my Sinatra app reload on changes?"