Home > しらべる > redmineのpost-commitも罠

redmineのpost-commitも罠

  • Posted by: memorycraft
  • 2008年11月11日 20:47
  • しらべる

前回の記事の最後でpost-commitのことに触れた

script/runner "Repository.fetch_changesets" -e production

ですが、実際やってみたら全然だめでした。post-commitでもcronでも無反応で、スクリプト自体はキックされているのですが、実行権限やユーザーなど、いろいろ試しても、動かず。

仕方なく次善策(次々善策?)として、チケット一覧の表示時に唐突にフェッチかけることにしました。

app/controllers/issues_controller.rb

  def index

    @repository = @project.repository
    @repository.fetch_changesets if Setting.autofetch_changesets?

    .....

とりあえず、これで回避。
うーーん。。。釈然としない。

Trackbacks:0

TrackBack URL for this entry
http://www.memorycraft.jp/mt-tb.cgi/78
Listed below are links to weblogs that reference
redmineのpost-commitも罠 from メモリークラフト

Comments:0

Comment Form

Home > しらべる > redmineのpost-commitも罠

ページの先頭へ戻る