alexch / rerun

Restarts an app when the filesystem changes. Uses growl and FSEventStream if on OS X.
Other
984 stars 80 forks source link

Server takes long to restart. Too much buffering time #110

Closed cngondo closed 6 years ago

cngondo commented 7 years ago

When I have made changes and saved on my HTML files, it takes long before the server picks the changes up again. The span is so long that when I refresh the page it gives me a 404 error on the browser until I refresh the page again. I'm using it in a sinatra app so I'm running the server using rackup. If the time between making the changes and refreshing the browser to see the changes is reduced to almost instantly, then it would do a lot of good on the experience.

alexch commented 6 years ago

I just added a --wait feature which allows you to tune the delay between rerun politely asking the process to stop, and rudely killing it. But that won't help if your server takes several seconds to start up. If you need faster reaction time, I suggest trying shotgun or guard; read the bottom of the README for a comparison between them.