how to configure a rails app (redmine) to run as a service on windows?

后端 未结 7 808
你的背包
你的背包 2020-12-07 23:28

I\'m using redmine as a ticket manager, and I\'d like to configure it to be run automatically when windows starts up.

How can I configure it to be run as a service?<

7条回答
  •  广开言路
    2020-12-08 00:03

    Hope this will help to anyone. I defined the windows service that starts the redmine with the thin server.

    Use http://nssm.cc/usage for windows service creation. Set the path to ruby.exe, your redmine's working directory and define the starting parameters:

    Path: C:\RailsInstaller\Ruby2.3.3\bin\ruby.exe
    Startup directory: C:\Program Files\redmine-3.4.6
    Arguments: C:\RailsInstaller\Ruby2.3.3\bin\thin start -e production -p 3000
    

提交回复
热议问题