Ruby on rails 将rails应用程序推送到heroku不工作

Ruby on rails 将rails应用程序推送到heroku不工作,ruby-on-rails,git,heroku,Ruby On Rails,Git,Heroku,我正试图使用git push heroku master将我的rails 3应用程序上载到heroku,但我一直遇到以下错误: -----> Heroku receiving push -----> Removing .DS_Store files -----> Rails app detected ! Heroku Bamboo does not include any Rails gems by default. ! You'll need to decla

我正试图使用git push heroku master将我的rails 3应用程序上载到heroku,但我一直遇到以下错误:

-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Rails app detected
!     Heroku Bamboo does not include any Rails gems by default.
!     You'll need to declare it in either .gems or Gemfile.
!     See http://docs.heroku.com/gems for details on specifying gems.
!     Heroku push rejected, no Rails gem specified.

error: hooks/pre-receive exited with error code 1
我试着删除heroku网站上的,然后重新开始,我也试着删除我的git repo,然后重新进行init,我不断地得到同样的错误。我的档案如下:

source :rubygems 

gem 'rails', '3.0.3'
gem 'recaptcha', :require => 'recaptcha/rails'
gem 'devise', '1.1.3'
gem 'acts-as-taggable-on'
gem 'ruby-debug'
# for sass
gem 'haml'
gem 'mocha'
gem 'ruby-pg'
我已经运行bundle包将gems打包到供应商缓存中,但它似乎并没有改变结果


我从rails 2.3升级了这个应用程序,所以我想知道这是否与此有关?

尝试将这些添加到您的
Gemfile

gem 'pg' # Heroku's DB runs on postgresql
gem 'heroku'

尝试将这些添加到您的
GEM文件中

gem 'pg' # Heroku's DB runs on postgresql
gem 'heroku'

这是我从Heroku那里得到的答案:

问题似乎是您的Gemfile被称为Gemfile。虽然这在某些平台(如Mac)上是可行的,但在严格区分大小写的文件系统(如我们的文件系统)上是行不通的

要在保留大小写、不区分大小写的文件系统(如HFS或NTFS)中重命名文件,您需要分两步执行:

git mv GemFile Gemfile.temp
git mv Gemfile.temp Gemfile

这是我从Heroku那里得到的答案:

问题似乎是您的Gemfile被称为Gemfile。虽然这在某些平台(如Mac)上是可行的,但在严格区分大小写的文件系统(如我们的文件系统)上是行不通的

要在保留大小写、不区分大小写的文件系统(如HFS或NTFS)中重命名文件,您需要分两步执行:

git mv GemFile Gemfile.temp
git mv Gemfile.temp Gemfile

赫罗库没有支持者吗?是否尝试将捆绑程序更新为最新版本?另外,“error:hooks/…”后面的消息是什么?请看和。这是错误的其余部分:错误:hooks/pre-receive退出,错误代码为1到git@heroku.com:radiant-sunrise-74.git![remote rejected]master->master(拒绝预接收挂钩)错误:无法将某些引用推送到'git@heroku.com:radiant-sunrise-74.希罗库没有支持者吗?是否尝试将捆绑程序更新为最新版本?另外,“error:hooks/…”后面的消息是什么?请看和。这是错误的其余部分:错误:hooks/pre-receive退出,错误代码为1到git@heroku.com:radiant-sunrise-74.git![remote rejected]master->master(拒绝预接收挂钩)错误:无法将某些引用推送到'git@heroku.com:radiant-sunrise-74.吉特'