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: http://pythonpaste.org/deploy/#composite-applications
[composite:main] use = egg:Paste#urlmap / = home /booksearch = booksearch /mybackup = mybackup [app:booksearch] use = egg:booksearch [app:mybackup] use = egg:mybackup [app:home] use = egg:Paste#static document_root = %(here)s/htdocs [server:main] use = egg:waitress#main host = 127.0.0.1 port = 9090
You can run pserve to start the project: