首先,我遇到了很多其他错误,但我想从导致错误开始..好吧我想将我的项目推送到我的heroku服务器。我在我的apps目录中运行 “git push 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 git@heroku.com:desolate-temple-6370.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:desolate-temple-6370.git'
答案 0 :(得分:1)
首先,我认为Postgres是这里的问题。我相信Heroku和Rails内置PG导致一些问题。尝试像这样编辑你的宝石页面:
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
然后,执行“捆绑安装”。
如果这不起作用,请尝试“捆绑安装 - 无生产”
希望这有帮助。