facebook – Foreman在Windows下启动失败,遵循Heroku教程 - 代码日志

facebook – Foreman在Windows下启动失败,遵循Heroku教程

我遵循Heroku / Facebook整合的heroku教程(但我怀疑这个问题与Facebook整合无关),我被困在我应该开始工头的舞台上(我已经安装了Heroku installbelt for windows ,其中包括工头):

> foreman start

得到:

C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find foreman (>= 0) amongst [POpen4-0.1.4, Platform-0.4.0, ZenTest-4.6.2, abstract-1.0.0, actionm
ailer-3.0.11, actionmailer-3.0.9, actionpack-3.0.11, actionpack-3.0.9, activemodel-3.0.11, activemodel-3.0.9, activerecord-3.0.11, activerecord-3.0.9, activerecord-sqlserver-adapter-3.0.15, activereso
urce-3.0.11, activeresource-3.0.9, activesupport-3.0.11, activesupport-3.0.9, addressable-2.2.6, annotate-2.4.0, arel-2.0.10, autotest-4.4.6, autotest-growl-0.2.16, autotest-rails-pure-4.1.2, autotest
-standalone-4.5.8, builder-2.1.2, bundler-1.0.15, diff-lcs-1.1.3, erubis-2.6.6, factory_girl-1.3.3, factory_girl_rails-1.0, faker-0.3.1, gravatar_image_tag-1.0.0.pre2, heroku-2.14.0, i18n-0.5.0, json-
1.6.1, launchy-2.0.5, mail-2.2.19, mime-types-1.17.2, mime-types-1.16, nokogiri-1.5.0-x86-mingw32, open4-1.1.0, pg-0.11.0-x86-mingw32, polyglot-0.3.3, polyglot-0.3.1, rack-1.2.4, rack-1.2.3, rack-moun
t-0.6.14, rack-test-0.5.7, rails-3.0.11, rails-3.0.9, railties-3.0.11, railties-3.0.9, rake-0.9.2.2, rake-0.8.7, rb-readline-0.4.0, rdoc-3.11, rdoc-3.8, rest-client-1.6.7, rspec-2.6.0, rspec-core-2.6.
4, rspec-expectations-2.6.0, rspec-mocks-2.6.0, rspec-rails-2.6.1, rubygems-update-1.8.11, rubyzip-0.9.4, rubyzip2-2.0.1, spork-0.9.0.rc8-x86-mingw32, sqlite3-1.3.3-x86-mingw32, sqlite3-ruby-1.3.3, te
rm-ansicolor-1.0.7, thor-0.14.6, tiny_tds-0.4.5-x86-mingw32, treetop-1.4.10, treetop-1.4.9, tzinfo-0.3.31, tzinfo-0.3.29, webrat-0.7.1, will_paginate-3.0.pre2, win32-api-1.4.8-x86-mingw32, win32-open3
-0.3.2-x86-mingw32, win32-process-0.6.5, windows-api-0.4.0, windows-pr-1.2.1, zip-2.0.2] (Gem::LoadError)
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
        from C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems.rb:1210:in `gem'
        from C:/Program Files (x86)/ruby-1.9.3/bin/foreman:18

由于我是一个完整的noob在这我不知道我的问题在这里是一个重复的Error on ‘foreman start’ while following the Python/Flask Heroku tutorial(因为它不是相同的错误)。如果是这样,有没有人有一种在Windows上部署开发环境的方法(对于Heruko,Python,Facebook应用程序)?还是应该使用Ubuntu呢?

谢谢

虽然这个问题似乎没有任何人在这里(5个意见在〜2小时,0答案,0评论…),我找到了解决方案,并准备与任何人会遇到它分享:

>从rubyinstaller.org安装最新的红宝石(1.9.3-p194) – 有时我们刚刚卸载了所有版本的ruby,但是如果您已经有其他需要旧版本的应用程序那么你必须要更加小心
>检查您的系统是否默认使用此版本通过在命令行提示符下调用ruby -v:获取ruby 1.9.3p194(2012-04-20)[i386-mingw32](您可能需要关闭并重新打开cmd ,包括新的环境变量)
>仍然在cmd中调用:

gem install foreman
gem install taps

>现在去你的Procfile应用程序(例如你的英雄示例应用程序从教程),并执行工头开始,你应该看到这样的:

18:23:52 web.1  | started with pid 7212
18:23:54 web.1  |  * Running on http://0.0.0.0:5000/
18:23:54 web.1  |  * Restarting with reloader 
http://stackoverflow.com/questions/11434287/foreman-start-fails-on-windows-following-heroku-tutorial

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:facebook – Foreman在Windows下启动失败,遵循Heroku教程