10 messages in com.googlegroups.pylons-discussPylons deployment methods| From | Sent On | Attachments |
|---|---|---|
| voltron | 29 May 2007 01:26 | |
| Shannon -jj Behrens | 29 May 2007 07:25 | |
| voltron | 29 May 2007 08:36 | |
| Shannon -jj Behrens | 07 Jun 2007 03:03 | |
| voltron | 08 Jun 2007 11:30 | |
| Mike Orr | 08 Jun 2007 12:18 | |
| Shannon -jj Behrens | 09 Jun 2007 18:03 | |
| voltron | 10 Jun 2007 02:11 | |
| Shannon -jj Behrens | 10 Jun 2007 02:29 | |
| Mike Orr | 10 Jun 2007 10:54 |
| Subject: | Pylons deployment methods![]() |
|---|---|
| From: | voltron (nhyt...@public.gmane.org) |
| Date: | 05/29/2007 01:26:42 AM |
| List: | com.googlegroups.pylons-discuss |
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?




