I have a question about deploying a Pyramid app to multiple application servers. My personal preference is to check out the code from SVN directly into production, but that's not the issue here. The virtualenv and dependencies are the issue.
Some deps come with extensions that need to be compiled, like SQLAlchemy's, psycopg2, simplejson, PIL, etc... And I don't want to have a compiler, dev libs and build environment set up on all of the app servers, I keep that on the master app server where I also test everything before deployment. So I have two solutions:
1. Prepare virtualenv on the master server, rsync it to app servers, and checkout the app code from SVN. Then the updates are again done in two steps: rsync virtualenv and co from SVN. 2. Prepare bdist tarball on the master server and pip install on app servers, and checkout the app code from SVN. Again the updates are then done in two steps: pip install (--upgrade) for virtualenv stuff and svn co for master app code.
Additionally I could use distro's packaged libs wherever possible, but I don't prefer that one for many reasons, first of all I really want to isolate the app with virtualenv from OS' default python implementation...
What are your experiences? -- .oO V Oo. -- 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.
