我使用SVN以下post-commit鉤子:紅寶石管理平臺SVN post-commit鉤子是extremally慢
"path\to\ruby.exe" "path\to\redmine\script\runner" "Repository.fetch_changesets; Rails.logger.flush" -e production
它工作正常,但大約需要1-2分鐘。 我也認爲第一次提交需要很多時間,但連續提交需要相同的時間。
有沒有可能改善這種行爲?
我知道Ruby在Windows上的緩慢行爲,大約3次,但在我的情況下,它更長。
配置如下:Windows Vista,Redmine 1.1.1,Ruby 1.8.7和RubyGems 1.8.7,所有安裝包和測試都在同一臺PC上執行。