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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With