Running delayed_job as a windows service

佐手、 提交于 2019-12-01 06:02:39
Russell

I did this by:

  1. Copying srvany.exe from the Windows Resource Kit to C:\windows\system32.

  2. Creating an empty service using sc create JobQueue binPath= "C:\windows\system32"

  3. Adding a registry key called Parameters to the service registry key located at HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > services > JobQueue

  4. 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"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!