> This condition seems to be caused by a lack of a dev.cfg when TG is > looking for it. TG decides to use dev.cfg or prod.cfg based on > whether or not it can find setup.py. setup.py exists in your dev > directory and so does dev.cfg -- but in your deployment, setup.py > still exists but there isn't a dev.cfg. Could you test this out: Go > to your deployment directory, rename setup.py to setup.py-bak and then > try and start your app. > > Please post back to the list with your results. > > I belive this to be true because if I delete dev.cfg and start a > project I get the same error. If I start the project and specify the > prod.cfg it works as expected. The 3rd belief is from what I was told > on IRC and that was you don't want to run autoreload in product -- so > I think it is a bug. I invalidated the original report, because as it > was written -- it was wrong. As I've just described it. > > rm/rename dev.cfg > rm/rename setup.py > > try and start project -- boom > try and start project (specify prod.cfg) -- boom > put dev.cfg back > try and start project -- boom > try and start project (specify prod.cfg) -- boom > restore setup.py > try and start project -- golden > try and start project (specify prod.cfg) -- golden > > at least that what happens on Ubuntu 6.10 w/ TG 1.0b2 and a quickstart > project with the defaults selected.
Thanks Jeff. I'll try all that out and report back. Now why wouldn't you want to use autoreload in production? Is autoreload just Cherrypy's autorestart on file save? ( that would make sense then I suppose. ) Gotta say, I am not a fan of CherryPy's habit of killing itself on errors though. I'd much rather see an error message printed and the damn thing keep trucking. :/ Iain --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

