我正在“Heroku上的node.js入门”中,我想通过以下方式“在本地运行应用程序”:
$foreman启动网络
(参见https://devcenter.heroku.com/articles/getting-started-with-nodejs#run-the-app-locally)
它说:
/usr/local/foreman/lib/foreman/process.rb:54:inrun': undefined method
spawn'for process:module(nomethoderor)
来自/usr/local/foreman/lib/foreman/process.rb:53:inchdir' from /usr/local/foreman/lib/foreman/process.rb:53:in
run'
来自/usr/local/foreman/lib/foreman/engine.rb:356:inspawn_processes' from /usr/local/foreman/lib/foreman/engine.rb:353:in
到'
来自/usr/local/foreman/lib/foreman/engine.rb:353:inspawn_processes' from /usr/local/foreman/lib/foreman/engine.rb:352:in
每个
自/usr/local/foreman/lib/foreman/engine.rb:352:inspawn_processes' from /usr/local/foreman/lib/foreman/engine.rb:57:in
启动
发件人/usr/local/foreman/lib/foreman/cli.rb:41:instart' from /usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/command.rb:27:in
send'
来自/usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/command.rb:27:inrun' from /usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
调用命令
发件人/usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor.rb:359:indispatch' from /usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/base.rb:440:in
start'
发件人/usr/bin/foreman:15
(在Mac OS 10.7.5上运行)
有什么可以帮忙的吗?谢谢!
最佳答案
查看https://github.com/ddollar/foreman/issues/473。
似乎与福尔曼或鲁比的旧版本有关。