Report this

What is the reason for this report?

How can i deploy a django application?

Posted on June 24, 2020

Hello Everybody!

I just started using digitalocean and I have a question. I have a Django app stored in bitbucket and I want to use a pipeline on my project so the code is updated when I commit changes to my repository. Is there a way to do that in DO?



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.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

Absolutely, you can achieve this with Continuous Integration and Continuous Deployment (CI/CD) pipelines. These pipelines help to automatically test and deploy your applications.

For Bitbucket, you could use Bitbucket Pipelines, an integrated CI/CD service, designed to build, test, and deploy code directly from your Bitbucket repository.

You would need to configure a bitbucket-pipelines.yml file in your repository which contains pipeline configuration. This would include commands that push your built application to your DigitalOcean Droplet upon successful build.

The overall process is a little detailed to explain here but don’t worry, there are plenty of tutorials and documentations that can guide you along.

For the most in-depth and accurate guide, you can refer to the guide on how to work with pipelines in Bitbucket’s documentation: Bitbucket Pipelines Configuration.

Also, you can check this guide on the subject: Continuous Deployment with Bitbucket.

Should you need any more assistance, do not hesitate to ask!

Hope that this helps!

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.