【问题标题】:ChiliProject on Windows 7Windows 7 上的 ChiliProject
【发布时间】:2012-11-13 16:54:18
【问题描述】:

当我用 -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

可以作为服务运行吗?

【问题讨论】:

    标签: ruby windows chiliproject


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-02
      • 2011-12-13
      • 1970-01-01
      • 2018-12-19
      相关资源
      最近更新 更多