-
Clone autodeploy.js to your server
-
update REPO folder field in autodeploy.js to point to your project
-
update relevant commands in autodeploy.js to handle git pull, server restart command
-
launch the script, it listens at port 888 by default
-
Head to your BitBucket project repository page and click on Repository settings
- Go to Webhooks and click on Add webhook