On Nov 29, 2007 10:16 PM, Philip Jenvey <[EMAIL PROTECTED]> wrote: > > > On Nov 29, 2007, at 3:41 PM, Philip Jenvey wrote: > > > > > This is sucky: the template should just reside in the root directory > > of the project, so folks don't have to worry about revision > > controlling the egg-info dir. IIRC PasteScript hardcodes the template > > location there. > > > > Oh, but of course the problem with having the production template in > the root directory is running paster setup-app <project> on an > installed project wouldn't have the template on hand -- it needs to > be installed along with the project. Hmm..
All these issues are what make me question the wisdom of installing apps as eggs and using paster setup-app at all. Just copy development.ini to production.ini and make any necessary changes (you do want to version control production.ini, right?), copy the application directory to the server, run "python setup.py develop", dump/restore your databases and empty them if necessary, and you're done. No need to install a zipped egg into site-packages and then wonder where to put your .ini file and data directory. No need to write a setup-app script that prepares the environment for *one* before-and-after scenario that may not quite fit the current situation, especially if you have existing data or are modifying the database. You had to create the database long ago to build the application, right? So why recreate it when you can just copy a database that works? No need to run make-config and merge all your custom settings from development.ini. Just copy it and change the debug variable and email address. Installing Python apps as eggs makes sense if you're distributing a public egg or managing a large server farm, but what percentage of Python applications will ever be deployed this way anyway? -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
