Question

Automatic push on droplet

How i can make a automatic deploy on my production droplet ?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I’ve done a test with dukk that works more or less with heroku to do deploy, in a simpler way would I have to do a push on the droplet without needing to access via ssh and give a pull?

@lucasprogmd

Thanks for posting this question, automatic deployment is a complex task I will try to describe it here.

First you need to have a git repository to host your code, there are many available applications that allow you to host your code for example: github and gitlab.

After you setup a git repository you need a continuous integration tool to automatically run builds when you push new code to the repository, gitlab has its own CI tool known as gitlab CI and it is very easy to use, you can also use jenkins or (travis)[https://travis-ci.org] with github.

Now last you need a code deployment tool to deploy new code each time you push it to the repository, you can use (ansible)[https://www.ansible.com] or (capistrano)[https://capistranorb.com].

I hope this helps you if you need further questions please do not hesitate to ask.