I am looking for a way to automate the deployment of Python web applications to a server. I would like to use virtualenv to create a clean environment for this application.
However, I am wondering how to manage dependencies when deploying to a server?
In development, I have virtualenv in which I install external libraries using pip, so I'm looking for a way to automatically install these dependencies during production?
thank you for your time
With pip, you can create a requirements file:
$ pip freeze > requirements.txt
Then on the server, install all of them:
$ pip install -r requirements.txt
( , ) .