我是第一次 Heroku 用户,这是我的第一个 Rails 应用程序。所以这听起来可能是个问题。对此感到抱歉。
无论如何,当我从项目的根目录尝试 Heroku create 或 Heroku login 时,这就是我得到的响应。但是当我在项目文件夹之外做同样的事情时,一切正常。该项目已经是一个 git repo。
我不确定我哪里出错了。非常感谢任何帮助。提前致谢。
顺便说一句,我正在运行 Ubuntu 14.04 LTS。
heroku create
/home/user/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:2157:in `method_missing': undefined method `this' for #<Gem::Specification:0x603d94 heroku-3.42.25> (NoMethodError)
from /home/user/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1056:in `find_active_stub_by_path'
from /home/user/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:63:in `require'
from /home/user/.rvm/gems/ruby-2.2.1/gems/heroku-3.42.25/bin/heroku:11:in `<top (required)>'
from /home/user/.rvm/gems/ruby-2.2.1/bin/heroku:23:in `load'
from /home/user/.rvm/gems/ruby-2.2.1/bin/heroku:23:in `<main>'
from /home/user/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /home/user/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
最佳答案
create command
需要一个名字。
创建名为 my_app
的应用程序称呼:
heroku create my_app
关于ruby-on-rails - 创建时出现 Heroku 错误(在 Rails 应用程序中),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34565489/