Heroku 仍在尝试安装开发 gem,即使我告诉它不要这样做
我正在深入研究 RoR,并使用 Heroku 来托管我正在构建的测试应用程序。当我向 Heroku 进行推送时,在尝试安装 linecache19 gem(由 ruby-debug19 gem 使用)时崩溃了......
Installing ruby_core_source (0.1.4)
Installing linecache19 (0.5.11) with native extensions /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
在整个网络上搜索这个问题后,每个人的解决方案都是......
heroku config: add BUNDLE_WITHOUT="test development" --app app_name
但是推送到即使我这样做之后,Heroku 仍然崩溃。这是我的 Gemfile...
source 'http://rubygems.org'
gem 'rails', '3.0.5'
gem "carrierwave"
gem "mini_magick"
gem "fog"
group :development do
gem 'annotate-models', '1.0.4'
gem 'sqlite3'
gem 'ruby-debug19'
gem 'sqlite3-ruby', :require => 'sqlite3'
end
我什至卸载了 ruby-debug19 gem,但它仍然崩溃并尝试安装 linecache19 gem。为什么这个 linecache19 gem 不会消失?我对这一切都很陌生,因此,我确信我错过了一些明显的东西。你的想法?
感谢您的智慧!
I'm diving into RoR and I'm using Heroku to host the test app I'm building. When I do a push to Heroku, it crashes when trying to intall the linecache19 gem (which is used by ruby-debug19 gem)...
Installing ruby_core_source (0.1.4)
Installing linecache19 (0.5.11) with native extensions /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
After searching all over the web for this problem, everyone's solution was...
heroku config: add BUNDLE_WITHOUT="test development" --app app_name
But the push to Heroku still crashes even after I did that. Here's my Gemfile...
source 'http://rubygems.org'
gem 'rails', '3.0.5'
gem "carrierwave"
gem "mini_magick"
gem "fog"
group :development do
gem 'annotate-models', '1.0.4'
gem 'sqlite3'
gem 'ruby-debug19'
gem 'sqlite3-ruby', :require => 'sqlite3'
end
I even uninstalled the ruby-debug19
gem and it's still crashing and trying to install the linecache19 gem. Why won't this linecache19 gem go away? I'm new to all this and, as such, I'm sure I'm missing something obvious. Your thoughts?
Thanks for your wisdom!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的
heroku config
命令格式错误。add
之前有一个空格,并且development
和test
之间缺少冒号。$ heroku config:add BUNDLE_WITHOUT="development:test" --app app_name
文档在这里。< /a>
另外,您是否还记得在本地运行
bundle install
并将您的Gemfile
和Gemfile.lock
提交到git?
Your
heroku config
command is malformed. You have a space beforeadd
and you are missing the colon betweendevelopment
andtest
.$ heroku config:add BUNDLE_WITHOUT="development:test" --app app_name
Docs are here.
Also, are you remembering to run
bundle install
locally and commit both yourGemfile
andGemfile.lock
intogit
?