On Apr 2, 5:30 am, edgarsmolow <[email protected]> wrote:
> An alpha version of my first Pylons app is on my workstation in
> development mode.  I want to deploy the app to our web server so our
> customer can view it and provide feedback.  Pylons 0.9.7 has been
> installed on the web server.
>
> 1. Is the best procedure for deploying the app to create a Python egg
> and a config file, and copy them to the web server?

Maybe the "best" would be to create an egg, put it on a web server
somewhere, and easy_install it using the -f option.

If you're using Subversion, you could create a tag and easy_install
directly from the repo, like so:

    easy_install http://repo.example.com/path/to/tag

BTW, I'm assuming that you're installing in a virtualenv, but this
would work for a system install, too.

What I do is create a virtualenv and add a run directory to it. I put
my config file in the run directory, and run `paster serve --daemon
prod.ini` from there.


> [The common method of deployment where Pylons was NOT used is to copy
> a slew of files to the web server, carefully placing them in specific
> directories.  Later updates are a matter of copying (overwriting) one
> or more files to web server.]
>
> 2. To update the application on the web server, do I create a new egg
> & config file, copy (overwrite) to the web server, and restart Paste?

Using the above method, you'd run the same easy_install command with
the -U option, copy the new config file, and restart.

If it's not a production deployment and you're making a lot of
changes, it might be more convenient to do a checkout on the server
and run directly from the source.


It's hard to say what's best, but hopefully this helps.
--~--~---------~--~----~------------~-------~--~----~
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