sproutcore / abbot

SproutCore Build Tools [deprecated]
http://www.sproutcore.com
88 stars 44 forks source link

sc-server option to disable project monitoring #62

Open alexryd opened 13 years ago

alexryd commented 13 years ago

I'm having trouble with sc-server taking up a lot of CPU time. I've traced the problem down to the thread that is started by the SC::Rack::Builder.monitor_project! method. Apparently every 2 seconds it goes through every file in the project, checking if something has changed?

Right now I have commented out the line did_reload = reload_project! in the call method. I rather restart sc-server every time I add a new file to my project (which is not that often) than have it hog my CPU. It would be nice though if there was a project config or a command line option that would disable monitoring so that I didn't have to edit the source code.