Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pushing my code onto DotCloud from cloud9ide.com

I'm coding on the cloud9ide, which pushes to github. I then host it on dotcloud. I'm trying to see if there's some way I can get my code to deploy onto dotcloud when I push on cloud9ide without doing the extra round of pulling it to my local computer, and running their command line tool.

Right now my workflow is this:

cloud9ide -> github

$ git pull
github -> local

$ dotcloud push project.www .
local -> dotcloud

Is there some way I can skip the last step and auto push it to dotcloud? Reading their documentation suggests I can't directly push to them via git.

like image 580
Kit Sunde Avatar asked Oct 12 '22 04:10

Kit Sunde


1 Answers

Technically, you could git push directly to DotCloud (that's what the DotCloud CLI does behind the scenes); but you still would have to carry a few extra steps to trigger the build process (it's not triggered by the git push itself).

A better approach might be to setup a post-receive hook on github. The hook would signal a small and lean service somewhere (maybe on DotCloud itself). This service would then refresh its local git repository, and schedule a dotcloud push.

In the long term, DotCloud will probably provide a more streamlined integration with github; but meanwhile, this could do the trick with minimal effort.

like image 159
jpetazzo Avatar answered Oct 16 '22 23:10

jpetazzo