Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Kareimovich's avatar

push from bitbucket to digitalocean

I everybody My project is in digital ocean and every time i do

git add .
git commit 'update '
git push 

it publishes my updates to my Repositories but updates don't take action on Digital ocean

What should i do

0 likes
2 replies
lostdreamer_nl's avatar

You're only pushing to your repository, unless you have set up both your repo and digital ocean server to also auto-deploy on each commit, nothing will happen (thank god computers don't try to read our minds yet).

https://www.digitalocean.com/community/tutorials/how-to-set-up-automatic-deployment-with-git-with-a-vps

This should help you out with the setup.

Basically, what you want is : Whenever you commit, the repository should notify your digital ocean server that a commit was done. Your hook (on the DO server) will then check if the commit was on a certain branch (master ?) and if so: it will do a git pull etc. to update the server.

2 likes
AlexDemin's avatar

Please also take a look at automated deployment tools

They will provide zero downtime deployment, run migrations for you, update dependencies, rollback in case of any problems, notify you via Slack, etc. etc.

A must-have tool for a proficient developer.

Please or to participate in this conversation.