githubのコミットフックでredmineのリポジトリ更新
(pluginインストール済みの設定)
1. githubのdeploy keyを設定
~/.ssh/configの設定
Hostname hoge Host hoge IdentityFile hoge
gitのbareリポジトリのclone
git clone --bare git@hoge:hogeorg/hogerepo ~~~~ clone ~~~~
gitのoriginを設定
git remote add origin git@hoge:hogeorg/hogerepo
適当にコミットしてfetchできるかテスト
git fetch origin
3. Web Service Hookの設定
githubのsetting->hooks->WebHook URLsにredmineのurlを設定。
この時URLは
http://redmine_url?project_id=プロジェクト識別名
を設定.