I’m looking for a way to automate deployment of web applications written in Python to a server. I would like to use virtualenv to have a clean environment for this application.
However, I am wondering how to manage dependencies when deploying to the server ?
In development, I have a virtualenv in which I install external libraries using pip, so I am looking for a way to automatically install those dependencies in production ?
Thank you for your time
With pip you can create a requirements file:
Then in the server to install all of these you do:
And with this (if the server has everything necessary to build the binary packages that you might have included) all is ready.