I am trying to get delayed_job working as a windows service.
I am so thoroughly sick of windows I can\'t even begin to put it into words, but I am stuck with it for
I did this by:
Copying srvany.exe from the Windows Resource Kit to C:\windows\system32
.
Creating an empty service using sc create JobQueue binPath= "C:\windows\system32"
Adding a registry key called Parameters
to the service registry key located at HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > services > JobQueue
Adding the following three string values to the new registry key.
As below:
Application="c:\ruby193\bin\ruby.exe"
AppDirectory="$PATH_TO_RAILS_APP"
AppParameters="c:\ruby193\bin\rake jobs:work RAILS_ENV=$ENVIRONMENT"