English 中文(简体)
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 when I push on 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 .

问题回答

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.

Couple of points:

  1. Maybe it is just me but I don t see any merit in deploying on production on every commit / push.
  2. This is bit of a hack but you should be able to listen to a Git repository and run the DotCloud CLI push command using a continuous integration software such as Jenkins (formerly known as Hudson) etc.




相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签