Question

How can I setup my droplet to update itself from a Continuous Integration suite like Codeship

Posted April 16, 2014 5.3k views
I am using Codeship to do integration testing whenever I push and commit at Github. I would like to know how do you guys set it up to deploy to droplets using Codeship My projects are all in Node JS

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.

×
3 answers
Hi tjmonsi,

I'm not entirely sure what you are asking. Do you want to deploy code to a droplet when you make a git commit, or do you want to automatically launch droplets yourself?

DigitalOcean has an API that developers can use to create ingratiations and script the deployment of droplets. The documentation is here:

https://developers.digitalocean.com/

And here's a tutorial to get you started:

https://www.digitalocean.com/community/articles/how-to-use-the-digitalocean-api

Someone wrote Node.js bindings for it as well:

https://github.com/enzy/digitalocean-api

If you're just looking for info on how to deploy your project to a droplet, using the Dokku application might be a good choice:

https://www.digitalocean.com/community/articles/how-to-use-the-dokku-one-click-digitalocean-image-to-run-a-node-js-app

Let me know if you have anymore questions, or if I didn't understand you right!

I wrote a detailed blog post on how to automatically deploy a static website to a DO droplet every time you do a push to the master branch: https://kunalnagar.in/blog/deploy-sites-codeship-digital-ocean/

Submit an Answer