我好几个月都没有任何问题地使用过heroku。
今天我尝试创建一个本地数据库,将服务器端与开发端分开。我按照教程,安装了PG,然后使用了heroku pg:pull命令。它似乎做了一些事情(它做了:在本地创建了一个新的数据库,但是没有模式和表 - 可能是因为我使用的是命名模式,而不是默认模式?)。
在pg之后:拉终止,我无法再启动任何heroku命令。我明白了:
> heroku local web -f Procfile.windows <nul
C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- ffi (LoadError)
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/vendor/gems/rest-client-1.8.0/lib/restclient/windows/root_certs.rb:2:in `<top (required)>'
from C:/Program Files (x86)/Heroku/vendor/gems/rest-client-1.8.0/lib/restclient/windows.rb:7:in `require_relative'
from C:/Program Files (x86)/Heroku/vendor/gems/rest-client-1.8.0/lib/restclient/windows.rb:7:in `<top (required)>'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/vendor/gems/rest-client-1.8.0/lib/restclient.rb:16:in `<top (required)>'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/vendor/gems/rest-client-1.8.0/lib/rest_client.rb:2:in `<top (required)>'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/lib/heroku/command.rb:8:in `<top (required)>'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/lib/heroku/client.rb:4:in `<top (required)>'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/lib/heroku/auth.rb:3:in `<top (required)>'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/lib/heroku/analytics.rb:1:in `<top (required)>'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/lib/heroku/cli.rb:13:in `<top (required)>'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/ruby-2.1.7/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Program Files (x86)/Heroku/bin/heroku:27:in `<main>'
我尝试重新安装heroku工具带,但没有结果。
我正在使用Windows。
有没有人知道如何解决它?
答案 0 :(得分:0)
感谢所有建议并回答!
它变成了Heroku Toolbelt的一个简单的破解版本。他们把它翻了回来,我重新安装了Heroku。它解决了这个问题。