遵循所有指示。运行 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>'
最佳答案
我遇到了类似的问题并解决了它,我认为它也应该可以解决您的问题(请务必卸载以前的 ruby 安装,因为有时有多个相同版本的安装)。这是解决方案:Foreman start fails on Windows following Heroku tutorial
关于ruby - 遵循 Python/Flask Heroku 教程时 'foreman start' 出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11087100/