An multiple application pyramid project configuration

March 22, 2012 by
Filed under: python 

In the deployment of pyramid project, I don’t want to setup a separate process for each pyramid application. So it comes the requirement to deploy multiple application under one project.

Here’s an example configuration for a multiple app project. The project has 2 application, booksearch and mybackup. The configuration file syntax is the same as production.ini which is in paste deploy format. For interpretation of each section see:


use = egg:Paste#urlmap
/ = home
/booksearch = booksearch
/mybackup = mybackup

use = egg:booksearch

use = egg:mybackup

use = egg:Paste#static
document_root = %(here)s/htdocs

use = egg:waitress#main
host =
port = 9090

You can run pserve to start the project:

$pserve webapp-production.ini

Digg This
Reddit This
Stumble Now!
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)


Comments are closed.