Windows 7上的ChiliProject

时间:2012-11-13 16:54:19

标签: ruby windows chiliproject

当我使用-d前缀启动服务器时,会出错:

C:\ruby\chili>bundle exec ruby script/server -e production -p 3005 -d
=> Booting WEBrick
=> Rails 2.3.14 application starting on http://0.0.0.0:3005
C:/ruby/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/process/daemon.rb:4:in `fork': fork() function is unimplemented on this machine (NotImplementedError)
    from C:/ruby/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/process/daemon.rb:4:in `daemon'
    from C:/ruby/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/commands/server.rb:62
    from script/server:4:in `require'
    from script/server:4

是否可以将其作为服务运行?

1 个答案:

答案 0 :(得分:1)

我通过使用FireDaemon(使任何程序作为Windows服务运行)解决了这个问题。