post-commit hook running Repository.fetch_changesets for windows, solved!
Replies (1)
(1-1/1)
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!
I came across this solution from http://www.nabble.com/A-solution-for-starting-background-jobs-on-Windows-from-post-commit-hooks-td20461573.html
(1-1/1)