遵循Python / Flask Heroku教程时出现'foreman start'错误

时间:2012-06-18 16:29:21

标签: ruby heroku foreman

遵循所有说明。运行foreman start时出现此错误:

C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/foreman-0.47.0/lib/fo reman/engine.rb:39:in `trap': unsupported signal SIGHUP (ArgumentError)
       from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/foreman-0.47.0/lib/foreman/engine.rb:39:in `start'
       from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/foreman-0.47.0/lib/foreman/cli.rb:34:in `start'
       from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.15.3/lib/thor/task.rb:27:in `run'
       from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.15.3/lib/thor/invocation.rb:120:in `invoke_task'
       from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.15.3/lib/thor.rb:275:in `dispatch'
       from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.15.3/lib/thor/base.rb:425:in `start'
       from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/foreman-0.47.0/bin/foreman:7:in `<top (required)>'
       from C:/Program Files (x86)/ruby-1.9.3/bin/foreman:19:in `load'
       from C:/Program Files (x86)/ruby-1.9.3/bin/foreman:19:in `<main>'

2 个答案:

答案 0 :(得分:3)

所以,显然foreman在Windows上不起作用,这在Heroku教程中没有提到。希望他们能解决这个问题。

答案 1 :(得分:3)

我遇到了类似的问题并解决了它,我认为它也应该解决你的问题(确保卸载以前的ruby安装,因为有时会有几个相同版本的安装)。以下是解决方案:Foreman start fails on Windows following Heroku tutorial