2012-10-16 69 views
3

我試圖推動我的應用程序到Heroku,但我被拒絕。這是我收到的錯誤消息。Heroku推送拒絕導軌2.3.5

Counting objects: 63, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (56/56), done. 
Writing objects: 100% (63/63), 80.06 KiB, done. 
Total 63 (delta 10), reused 0 (delta 0) 

-----> Heroku receiving push 
!  Heroku push rejected, no Cedar-supported app detected 

To [email protected]:agile-shelf-2850.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:agile-shelf-2850.git' 

我的應用程序是簡單的Hello World應用程序,我使用了以下內容:

的Rails 2.3.5 的Ruby 1.8.7 寶石1.4.2

我已經研究網站並發現其他人有這個問題,但他們正在使用Rails 3.示例:Heroku push rejected, no Cedar-supported app detected

任何想法?我正在使用這些較舊的版本,因爲我試圖融入的項目正在使用這些版本,所以我試圖保持一致。

+1

存儲庫根目錄中的文件是什麼? 'Gemfile'向Heroku表明你是一個Ruby應用,'config.ru'表示你使用Rack,'config/environment.rb'沒有'config/application.rb'表示Rails 2. – willglynn

+0

嗨!感謝您的答覆。我不是一個config.ru,也沒有一個Gemfile。我也沒有config.ru。我的config/environment.rb文件中沒有config/application.rb文件,所以我確信我的hello world應用程序是Rails 2. – user1750732

+0

您需要'Gemfile'和'config.ru'。你是如何得到一個沒有這些文件的Rails 2.3應用程序的? – willglynn

回答

1

您需要將config/environment.rb中的config.gem行移至Gemfile並安裝捆綁器。 Rails 2.x沒有固有的Bundler支持,而Cedar需要使用Bundler來指定應用程序的gem依賴關係。否則,它不會將您的應用程序視爲Rails應用程序。

通過爲Rails 2.3安裝捆紮機:

http://gembundler.com/v1.3/rails23.html

如果您有進一步的問題,後來告訴我們!

相關問題