0
我试图将我的导航应用程序上传到Heroku。我正在使用Ruby 1.9.3。 应用程序可以部署在我的本地机器。未能将rail应用程序部署到heroku(安装linecache19时出错(0.5.12)
An error occurred while installing linecache19 (0.5.12), and Bundler cannot continue.
Make sure that `gem install linecache19 -v '0.5.12'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
我试图进入这一行的Gemfile中
gem 'linecache19', :git => 'git://github.com/mark-moseley/linecache'
但它似乎并没有解决问题。
有人请指教?谢谢了前进帮助。 p.s .:对于新手问题真的很抱歉,我对Ruby on Rails开发非常感兴趣。
下面是我的完整的Gemfile
source 'http://rubygems.org'
gem 'rails', '3.1.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
# for Heroku deployment - as described in Ap. A of ELLS book
group :development, :test do
gem 'sqlite3'
gem 'ruby-debug19', :require => 'ruby-debug'
end
group :production do
gem 'pg'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'therubyracer'
gem 'sass-rails', " ~> 3.1.0"
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
end
gem 'jquery-rails'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
gem 'haml'
gem 'linecache19', :git => 'git://github.com/mark-moseley/linecache'
谢谢您的回复@Deefour,我已经将它移动到开发,测试组,然后我执行 捆绑安装 混帐推Heroku的主 但我仍然收到同样的错误。您能否提一些建议 ? - 谢谢 – user2037739
你有没有将你的新'Gemfile'和'Gemfile.lock'提交给heroku?是否推动heroku成功?除了忘记提交更改或执行错误操作之外,我没有看到部署尝试再次构建'linecache19'的理由。 – deefour
此外,您可能还需要设置一个配置标志,以便不安装测试或开发宝石:'$ heroku config:add BUNDLE_WITHOUT =“测试开发”--app app_name'更多信息:http://blog.johnfnixon。 com/using-rails-3x-with-heroku – GregB