Thanks Shannon, but as I mentioned a few posts above, creating eggs worked in windows for me, not on Linux. What would be the correct syntax? I take it too be the same as in the docs, but this just threw horrible errors back at me
On Jun 7, 12:03 pm, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wrote: > On 5/29/07, voltron <[EMAIL PROTECTED]> wrote: > > > > > Ok, just to get things straight: > > > 1. I copy my app folder(the one with the development.ini in it) from > > my windows machine to my Linux server > > > 2. I run "setup-app" and this sets stuff up on my linux machine as it > > should > > > Did I get it? > > Pretty close: > > * Create an egg. > * Copy the egg to the server. > * easy_install the.egg. > * paster setup-app your.ini. > > Best Regards, > -jj > > > > > "the way of the pylons is sometimes easy, but mostly secretive and > > tricky" > > > On May 29, 4:25 pm, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wrote: > > > On 5/29/07, voltron <[EMAIL PROTECTED]> wrote: > > > > > This is another of my "what is the best way" questions. > > > > > I would like to deploy my Pylons application without headaches on my > > > > clients server. This would mean my app with its templates and creating > > > > the database. A while back, Dan posted that he had init code in > > > > websetup.py and he called this at the command line: > > > > > command-prompt# paster setup-app development.ini > > > > > Taking a look at this line, I thought, "typical of Pylons, got to > > > > break out the shovel again". After digging for a while I found this: > > > > > def setup_config(self, command, filename, section, vars): > > > > 0557 """ > > > > 0558 Called to setup an application, given its configuration > > > > 0559 file/directory. > > > > 0560 > > > > 0561 The default implementation calls > > > > 0562 ``package.websetup.setup_config(command, filename, > > > > section, > > > > 0563 vars)`` or ``package.websetup.setup_app(command, config, > > > > 0564 vars)`` > > > > 0565 > > > > 0566 With ``setup_app`` the ``config`` object is a dictionary > > > > with > > > > 0567 the extra attributes ``global_conf``, ``local_conf`` and > > > > 0568 ``filename`` > > > > 0569 """ > > > > > What I have discovered can be summed up as: > > > > > 1. Create an egg for deployment, this worked for me on windows, it did > > > > ´nt work on Ubuntu > > > > 2. Copy the app folder to the target server, then run setup-app > > > > > What is advised by the Pylons overlords? > > > > Take another look at the QuickWiki tutorial. It does its own database > > > setup using "paster setup-app my.ini". To answer your more high level > > > question, yes, setup-app is good to use :) > > > > Happy Hacking! > > > -jj > > > > --http://jjinux.blogspot.com/ > > --http://jjinux.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
