Python – transferring a local project to a remote server

1 min

Porting the application python from your local computer to your remote server.

This is a short note on porting your dependencies and project to python, but you also need to configure the server. You can read about this in the article on complete server setup for Flask.

On my computer

On our computer, create a file that contains all the dependencies necessary for the project:

pip freeze > requirements.txt

or display local dependencies and save them later in the same file:

Uploading data to git – instructions for quick migration through git.

On server

Create a virtual environment in the site directory:

We enter the virtual environment:

Install the required dependencies:

pip install -r requirements.txt


Leave a Reply