cs10 / bjc-r

The Beauty and Joy of Computing public resource repository.
https://beautyjoy.github.io/bjc-r
30 stars 101 forks source link

Post-Receive Hooks #176

Closed cycomachead closed 9 years ago

cycomachead commented 10 years ago

Nate,

What have you done to try to get a simple PHP hook running? I'd like to work on setting one up for CS10 and for bjc.berkeley.

xtitter commented 10 years ago

Basically nothing. I got BJC.b.e to have php and python though, that took 3 months.

Nate fat-thumb Titterton On Jan 21, 2014 1:58 PM, "Michael Ball" notifications@github.com wrote:

Nate,

What have you done to try to get a simple PHP hook running? I'd like to work on setting one up for CS10 and for bjc.berkeley.

— Reply to this email directly or view it on GitHubhttps://github.com/beautyjoy/bjc-r/issues/176 .

cycomachead commented 10 years ago

Hmm. Ok. I'll play around with this in a few weeks when things settle down (hopefully).

Michael Ball http://www.michaelballphoto.com Photos & iPhone Apps!

On Tue, Jan 21, 2014 at 2:18 PM, Nate Titterton notifications@github.comwrote:

Basically nothing. I got BJC.b.e to have php and python though, that took 3 months.

Nate fat-thumb Titterton On Jan 21, 2014 1:58 PM, "Michael Ball" notifications@github.com wrote:

Nate,

What have you done to try to get a simple PHP hook running? I'd like to work on setting one up for CS10 and for bjc.berkeley.

— Reply to this email directly or view it on GitHub< https://github.com/beautyjoy/bjc-r/issues/176> .

— Reply to this email directly or view it on GitHubhttps://github.com/beautyjoy/bjc-r/issues/176#issuecomment-32970417 .

cycomachead commented 10 years ago

Just want to say I'm FINALLY making progress on this and will be able to make a hook work soon. I hope!

xtitter commented 10 years ago

can you explain what you mean by 'hook'? lol

cycomachead commented 10 years ago

Do something on some event...

http://git-scm.com/book/en/Customizing-Git-Git-Hooks

GitHub supports sending POST Requests to a URL for all sorts of things, I'm gonna try one for a push event. (though, GitHub supports this notion of "deployments" which I'll take a look at later.)

There's some stuff here https://github.com/cs10/webhooks Right now it's all python based, but I'd like to integrate it into an existing build system if possible. (Grunt, Puppet something else...?)

cycomachead commented 9 years ago

I have one hook running right now which updates the CS10 website! :)