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

April 16, 2014 2.1k 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
2 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:

And here's a tutorial to get you started:

Someone wrote Node.js bindings for it as well:

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:

Let me know if you have anymore questions, or if I didn't understand you right!
by Justin Ellingwood
One big step in developing a web application is deciding how best to deploy it when it's ready for production. Dokku, a simple app built on top of Docker, the Linux container system, provides an easy way to do this. In this article, we will explore how to easily deploy a Node.js application using the DigitalOcean one-click Dokku image.
Have another answer? Share your knowledge.