Well I'm not exactly sure what you're aiming to do with your hook, but
here's an example for you:
http://github.com/tekkub/tekkub.net/tree/master/app/controllers/github_controller.rb

Whenever I push to a repo that's set up to use my hook, my website updates
it's info automatically with data pulled from the github repo.

You should probably check out the hook guide for more info on the data
sent: http://github.com/guides/post-receive-hooks

If you simply wish to deploy your site, you probably don't want to do this
automatically in a hook.  Instead you should look into a deployment tool
like Capistrano: http://github.com/guides/deploying-with-capistrano

--tek

On Tue, Sep 9, 2008 at 11:02 AM, Neil Lee <[EMAIL PROTECTED]> wrote:

>
> I just started making the transition over from SVN to git, and I'd
> like to get a post-receive hook set up to automatically push any new
> changes in the repository to my live web server.
>
> I did a search but there wasn't a lot of information on how to do this
> -- can anyone help?
>
> I currently have my repositories stored at github.
>
> Thanks!
>
> Neil
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to