post-commit hook running Repository.fetch_changesets for windows, solved!

Added by bo ye about 13 years ago

within post-commit.bat, you have

c:\windows\system32\cscript.exe "dir\to\run_ruby.vbs" "dir\to\redmine\script\runner" "Repository.fetch_changesets -e production" 

within run_ruby.vbs, you have

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run( "c:\ruby\bin\ruby" & " " & WScript.Arguments(0) & " " & WScript.Arguments(1))

done!

Replies (1)

(1-1/1)