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?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to