I have a requirements.txt file on my development machine. I have pushed it into a git repo and cloned it on a server.
The way I push changes to the server is as follows:
I freeze the file on my development machine, then I add the file to git and pull it on the server and do pip install -r requirements.txt.
But doing this is installing all the packages again and again and I dont want that. I only want those packages to be installed which are not installed on the server.
Whats the best way of doing this? I would also like to know other efficient methods of pushing development code to server.