ericpaulbishop / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
185 stars 37 forks source link

Post receive hook #157

Open rahulan opened 12 years ago

rahulan commented 12 years ago

Dear All,

I'm running yourchili script successfully for the last 3 months. pushing changes to the repository and pulling it from live site all works GREAT.

Now, I try to achieve the post receive hook function.

I couldn't find a guide to set this up. could some one guide me on it please.

I've been to settings > repository > repository mirrors. added my site, but getting "push to mirror" internal error.

first of all, am I at the right place to set the post receive hook?

my workflow is.

  1. setup the site on the hosting server
  2. git add to my git hosting server.
  3. clone the repo on my local system
  4. edit files on local system and push changes to the git repo.
  5. ? this is where post receive hook comes in.

when I push changes to the repo I want the hosting server to be updated.

waiting for your guides.

Thank you.

Rahulan

kubitron commented 12 years ago

Is your git hosting server different from the redmine hosting server? If so, the post receive hook functionality will probably not work properly.

rahulan commented 12 years ago

Hi Kubitron,

it is Eric's script. I didn't install anything new. I'm bit confused where to input hosting server details.

thanks for your reply.

-rahulan

kubitron commented 12 years ago

There are step-by-step instructions on the README file that you should follow. Early in the file, it talks about where to put the server names in the init.rb file.

Also, I might recommend that you use my version of the plugin, since it fixes some of the issues when hooks get out of sync. My version is: https://github.com/kubitron/redmine_git_hosting/