Ha awesome. All I need is a start/stop script that runs my production server. So I'm just going to put my prod.cfg in /usr/local/project/conf/prod.cfg and just hard code it in the shell script. That was my orignal plan but I thought there might be a cleaner or best practices, way of doing it. Thanks.
-Ian On 1/20/07, Christopher Arndt <[EMAIL PROTECTED]> wrote: > > Ian Wilson schrieb: > > Thanks I think I am finally getting it now. So for my installation > > the prod.cfg should go here: > > /usr/lib/python2.4/site-packages/projectname-1.0-py2.4.egg/ > > I'm afraid not. > > > I think that is why this has the note: "needs work, how to configure" > > http://docs.turbogears.org/1.0/DeployWithAnEgg > > because the prod.cfg file is mentioned as required but it never tells > > you really where to put it. > > Because you can put it wherever you like, it just has to be either in the > directory "from where you start* start-project.py (i.e the current directory), > or you have to specify its location on the command line for start-project.py. > > The current directory of the start-project.py script is *not* the the > egg-directory nor the directory, where the start-project.py script is > installed > (usually /usr/bin or /usr/local/bin), but the directory from where you call > it. > > But you're right in that egg deployment currently does not address this > problem, and that's why you have to copy the config file by hand. You could > put > a default configuration file in the egg (by including it somewhere below your > project package directory) and then locate it in your start script with the > pkg_resource module, but I haven't seen a ready-made recipe for that yet. > > HTH, Chris > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

