Report this

What is the reason for this report?

How to automatically deploy code from bitbucket on ubuntu server with nginx, gunicorn/Django already working on it?

Posted on July 12, 2017

I am having a ubuntu server droplet that uses nginx for routing and gunicorn for django app. We have hosted frontend website using nginx and those are having differnet git repositries on bitbucket. So how can I automate the task of deployement of these frontend websites, so that after every push or pr code get automatically deployed on their respective branches.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

Hello there, I am author of two possible solutions to your problem.

First one is the open-source incoming webhook server that can execute commands, you can find it at https://github.com/adnanh/webhook and the bitbucket hook example at https://github.com/adnanh/webhook/wiki/Hook-Examples

Second one is Hookdoo and it follows a little bit different approach. However, it is a paid Software-as-a-Service solution, but it requires you to do zero setup on the server. When you register for the first time, you will receive a month of free trial so you can try it out, and we can help you set it up. You can check it out at https://www.hookdoo.com/

All the best, Adnan

Hi there,

Quick update here in case that someone comes across this in the future, deploying apps from Bitbucket to App Platform is now in early availability!

This is enabled for specific user groups as part of an incremental roll-out strategy. You can find more information here:

https://docs.digitalocean.com/products/app-platform/#18-december-2024

- Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.