Git在rubyonrails中推Heroku Master错误
首先,我得到了很多其他错误,但是我想先从错误引导开始。好吧,我想将我的项目推送到我的heroku服务器。我在我的应用程序目录,然后我运行 “混帐推Heroku的主”,这是我所得到的Git在rubyonrails中推Heroku Master错误
Identity added: /Users/some_ayodele/.ssh/id_rsa (/Users/some_ayodele/.ssh/id_rsa)
Initializing repository, done.
Counting objects: 145, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (124/124), done.
Writing objects: 100% (145/145), 31.06 KiB, done.
Total 145 (delta 27), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.5.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Your Gemfile lists the gem pg (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Your Gemfile lists the gem pg (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Your Gemfile lists the gem jquery-rails (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
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.
You have added to the Gemfile:
* carrierwave
* rmagick
* heroku
* git-rails
* hoe (~> 1.5.1)
* RedCloth
* i18n
You have deleted from the Gemfile:
* thin
Bundler Output: Your Gemfile lists the gem pg (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Your Gemfile lists the gem pg (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Your Gemfile lists the gem jquery-rails (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
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.
You have added to the Gemfile:
* carrierwave
* rmagick
* heroku
* git-rails
* hoe (~> 1.5.1)
* RedCloth
* i18n
You have deleted from the Gemfile:
* thin
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app
To [email protected]:desolate-temple-6370.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:desolate-temple-6370.git'
首先,我觉得Postgres的是这里的问题。我相信Heroku和Rails内置PG会导致一些问题。尝试像这样编辑您的宝石页面:
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
然后,执行“捆绑安装”。
如果这不起作用尝试做“捆绑安装--without生产的”
希望这有助于。
所以我做了你的建议,然后“捆绑安装”,我得到以下“从 获取宝石元数据安装耙(10.1.1)时发生错误, Bundler无法继续 确保'gem install rake -v '10.1.1''在捆绑之前成功。“ –
你有没有尝试过'捆绑安装 - 没有生产'? –
它现在有效,捆绑安装给了我错误,因为我没有将我的gemfile.lock文件添加到我的仓库,一旦我做了捆绑安装就像一个魅力。然后我删除的宝石“PG”从我的Gemfile因为它在 组已经提到:生产做 宝石“PG” 宝石“rails_12factor” 结束 现在一切都很好,谢谢! –
你有'pg' gem多次听你的Gemfile吗? –
不,它曾被列入 gem'pg' –