Digital Ocean VPS? … why’re you not SSH’ing. If you don’t want it to be manual, you could use something like Github Actions https://www.digitalocean.com/community/tech-talks/deploying-to-digitalocean-with-github-actions

writen by Sanat Hegde
SHH only works if I have a machine running right? I have a function. It’s supose to be serverless

writen by Tiago Ferreira
Yeah SSH for servers.
Does this help? https://docs.digitalocean.com/products/functions/how-to/create-functions/#deploy-a-function-in-the-current-namespace

writen by Sanat Hegde
that is what I am following at the moment too but still did not understand how to get the requirements.txt XD

writen by Tiago Ferreira
So apparently by including a build.sh
file in the project folder it will first run that build script… Even though that is nowhere in the documentation

writen by Tiago Ferreira
My saga continues I thought that the packages were being installed on DigitalOcean side, but instead it turns out that the pip is running in my machine before I guess zipping and pushing the code. So, in the end I still have the same issue of the python packages not being installed

writen by Tiago Ferreira
FIXED
You need to add a build.sh
file in your function folder with the following commands
set -e
virtualenv virtualenv
source virtualenv/bin/activate
pip install -r requirements.txt
deactivate```

writen by Tiago Ferreira