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
![](https://avatars.slack-edge.com/2022-02-02/3066073058336_1751a5fe8378b928260f_72.jpg)
writen by Sanat Hegde
SHH only works if I have a machine running right? I have a function. It’s supose to be serverless
![](https://avatars.slack-edge.com/2021-07-28/2322213143667_f9ad35c2dec28da258a5_72.jpg)
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
![](https://avatars.slack-edge.com/2022-02-02/3066073058336_1751a5fe8378b928260f_72.jpg)
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
![](https://avatars.slack-edge.com/2021-07-28/2322213143667_f9ad35c2dec28da258a5_72.jpg)
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
![](https://avatars.slack-edge.com/2021-07-28/2322213143667_f9ad35c2dec28da258a5_72.jpg)
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
![](https://avatars.slack-edge.com/2021-07-28/2322213143667_f9ad35c2dec28da258a5_72.jpg)
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```
![](https://avatars.slack-edge.com/2021-07-28/2322213143667_f9ad35c2dec28da258a5_72.jpg)
writen by Tiago Ferreira