问题
Followed all instructions. Get this error when running 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>'
回答1:
I encountered a similar problem and solved it, I think it should solve your issue too (be sure to uninstall former installations of ruby as sometimes there are several installations of the same version). Here is the solution: Foreman start fails on Windows following Heroku tutorial
回答2:
So, apparently foreman
does not work on Windows, which was not mentioned in the Heroku tutorial. Hope they fix that.
来源:https://stackoverflow.com/questions/11087100/error-on-foreman-start-while-following-the-python-flask-heroku-tutorial