为什么我在Heroku上收到错误,表明我需要将我的应用程序迁移到Bamboo?

时间:2010-06-06 03:36:16

标签: ruby-on-rails ruby git heroku

当我输入:git push heroku master时,就会发生这种情况

$:sample_app git push heroku master
Counting objects: 110, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (94/94), done.
Writing objects: 100% (110/110), 87.48 KiB, done.
Total 110 (delta 19), reused 0 (delta 0)

-----> Heroku receiving push
-----> Rails app detected
 !     This version of Rails is only supported on the Bamboo stack
 !     Please migrate your app to Bamboo and push again.
 !     See http://docs.heroku.com/bamboo for more information
 !     Heroku push rejected, incompatible Rails version

error: hooks/pre-receive exited with error code 1
To git@heroku.com:blazing-frost-89.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:blazing-frost-89.git'

我的.gems文件:

rails --version 2.3.8

我的.git / config文件:

[core]
  repositoryformatversion = 0
  filemode = true
  bare = false
  logallrefupdates = true
  ignorecase = true
[remote "origin"]
  url = git@github.com:csmeder/sample_app.git
  fetch = +refs/heads/*:refs/remotes/origin/*
[remote "heroku"]
  url = git@heroku.com:blazing-frost-89.git
  fetch = +refs/heads/*:refs/remotes/heroku/*

1 个答案:

答案 0 :(得分:4)

就像它说的那样,Rails 2.3.8只能在他们的Bamboo堆栈上使用。我认为这是因为Bamboo计划在不久的将来成为默认堆栈,并且Rails只在该堆栈上升级。