2012-11-13 52 views
2

當我開始與-d前綴服務器,它使錯誤:ChiliProject在Windows 7

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

我通過使用FireDaemon解決了這個問題(它使得任何程序作爲windows服務運行)。