Ruby on rails Heroku Rails无法通过绑定器安装gems-没有指定的源
我在尝试向Heroku承诺时遇到了一些奇怪的错误。。。 我的档案:Ruby on rails Heroku Rails无法通过绑定器安装gems-没有指定的源,ruby-on-rails,ruby,heroku,gem,Ruby On Rails,Ruby,Heroku,Gem,我在尝试向Heroku承诺时遇到了一些奇怪的错误。。。 我的档案: source 'http://rubygems.org' gem 'rails', '3.1.0' group :assets do gem 'coffee-rails', "~> 3.1.0" gem 'uglifier' end gem "jquery-rails" gem "rspec-rails", ">= 2.6.1", :group => [:development, :test] gem "da
source 'http://rubygems.org'
gem 'rails', '3.1.0'
group :assets do
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
end
gem "jquery-rails"
gem "rspec-rails", ">= 2.6.1", :group => [:development, :test]
gem "database_cleaner", ">= 0.6.7", :group => :test
gem "mongoid-rspec", ">= 1.4.4", :group => :test
gem "factory_girl_rails", ">= 1.1.0", :group => :test
gem "cucumber-rails", ">= 1.0.2", :group => :test
gem "capybara", ">= 1.0.1", :group => :test
gem "launchy", ">= 2.0.5", :group => :test
gem "bson_ext", ">= 1.3.1"
gem "mongoid", ">= 2.2.0"
gem "paperclip"
gem "mongoid-paperclip", :require => "mongoid_paperclip"
gem "devise", ">= 1.4.4"
gem "uuidtools"
gem "rqrcode"
gem "dynamic_form"
gem 'aws-s3', :require => 'aws/s3'
gem 'right_aws', :require => 'right_aws'
gem 'sass-rails', "~> 3.1.0"
gem 'compass', :git => 'git://github.com/chriseppstein/compass.git'
gem 'html5-boilerplate', :git => 'git://github.com/sporkd/compass-html5-boilerplate.git'
我的错误
Counting objects: 86, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (55/55), done.
Writing objects: 100% (57/57), 9.76 KiB, done.
Total 57 (delta 37), reused 0 (delta 0)
-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.1.rc
Running: bundle install --without development:test --path vendor/bundle
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
If this is a development machine, remove the Gemfile freeze
by running `bundle install --no-deployment`.
You have added to the Gemfile:
* source: git://github.com/sporkd/compass-html5-boilerplate.git (at maste
r)
* source: git://github.com/chriseppstein/compass.git (at master)
* source: rubygems repository http://rubygems.org/
* rails (= 3.1.0)
* coffee-rails (~> 3.1.0)
* uglifier
* jquery-rails
* rspec-rails (>= 2.6.1)
* database_cleaner (>= 0.6.7)
* mongoid-rspec (>= 1.4.4)
* factory_girl_rails (>= 1.1.0)
* cucumber-rails (>= 1.0.2)
* capybara (>= 1.0.1)
* launchy (>= 2.0.5)
* bson_ext (>= 1.3.1)
* mongoid (>= 2.2.0)
* paperclip
* mongoid-paperclip
* devise (>= 1.4.4)
* uuidtools
* rqrcode
* dynamic_form
* aws-s3
* right_aws
* sass-rails (~> 3.1.0)
* compass
* html5-boilerplate
You have changed in the Gemfile:
* compass from `git://github.com/chriseppstein/compass.git (at master)` t
o `no specified source`
* html5-boilerplate from `git://github.com/sporkd/compass-html5-boilerpla
te.git (at master)` to `no specified source`
!
! Failed to install gems via Bundler.
!
东西我有git rm Gemfile.lock然后捆绑安装,git add,git commit-m“heroku请工作”,然后git push。但是没有骰子。我还尝试过更新bundler(windows上的bundle版本1.0.21)
有什么想法吗?谢谢我也遇到了同样的问题,在过去几天研究和试验了不同的建议解决方案后,我发现了这篇帮助我解决问题的帖子: Codeglot在其答案下的评论中提供了可能对您有所帮助的步骤 我可以通过运行
gem update heroku
来解决我的问题。然后我删除了heroku gem的旧版本(gem卸载heroku-v2.8.6
)。您可以键入gem list
,查看是否安装了多个版本的heroku gem。然后,当我重新运行bundle install
并重新推送到heroku时,它起了作用
如果这对你不起作用,Codeglot提供了关闭你的应用程序并重新开始的步骤,这似乎对在那篇文章中提问的人起到了作用。我也有同样的问题。需要运行git-add。而git commit after bundle install是
Gemfile.lock
在你的.gitignore
文件中?你是在你添加了git后提交的吗?你是在第二次尝试时提交的吗?我的git ignore文件是:log/*tmp/**/.tmp_@phoffer我是这样做的,我忘了提一下,让我编辑几天前部署到Heroku(Cedar stack)时遇到的帖子,我相信我会再次运行bundle安装
,然后,一切都重新开始了。