Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I use Fabric to automatically deploy an app on my server every time I push the code to GitHub? (GitHub has the ability to POST to a URL every time I push.)

If so, how?

share|improve this question

Sure. It's not a real good idea, but it's possible. Just setup something on a URL you control that when it receives the POST from Github, it runs your fabric script. You could use any sort of CGI/FCGI/WSGI/whatever to do this; even a couple of lines of PHP would be enough to get things underway.

share|improve this answer
Why is it not a good idea? I've been hearing this opinion in several places but haven't seen an explanation yet. – Ram Rachum Sep 5 '11 at 18:11
Because the commit is not a good unit of measure for a deployment. If you start using one as a proxy for the other, you encourage abberant and counter-productive behaviour. – womble Sep 7 '11 at 1:20

Yes, There some plugins could integrate to Github. Details :

Also, In the Fabric side, you could trigger it by a Github web hook request. If you don't want implement a website to do this, maybe you can try the jenkins and its plugin.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.