Search code examples
githerokubitbucketproductioncloud9-ide

Git push to DigitalOcean from Bitbucket or Cloud9


I'm making site on Cloud9 IDE and I can't find the way to easy push my production code to DigitalOcean droplet server. Maybe there is some simple way I could do it as easy as it is to push code to Heroku from Cloud9. With simple command from Cloud9 console.

All my git code lives in Bitbucket so maybe you have ideas how to connect it to DigitalOcean?

Hope to hear how you do these production "pushes". You probably have well known techniques for these things.

Help!


Solution

  • Your first, easy, option is to pull instead of push. Just do a

    git clone
    

    or a

    git pull
    

    On the droplet.

    The harder way is to do a continuous integration (CI) environment such as Jenkins or CruiseControl. You are unlikely to find this functionality in a hosted git environment such as GitHub or BitBucket.

    Some reading:

    http://cruisecontrol.sourceforge.net/

    https://jenkins-ci.org/