Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
1  
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
2  
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
add comment

Your Answer

 
discard

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.