2014-01-18 53 views
0

我已經按照這裏所有的問題,但我仍然得到一個錯誤推向Heroku。sqlite3阻止推向Heroku

這是我到目前爲止已經完成:從Gemfile中,捆綁,git的承諾和混帳推到Heroku的

  1. 刪除sqlite3的完全。
  2. 將sqlite3放入組中:development,:test do,bundle,git commit和git push到Heroku。
  3. 卸載並重新安裝sqlite3 gem,bundle,git commit和git push到Heroku。
  4. 刪除Gemlock文件,綁定,git commit和git push到Heroku。

寶石文件:

group :development, :test do 
    gem 'sqlite3' 
end 

group :production do 
    gem 'rails_12factor' 
    gem 'pg' 
end 

Git的狀態是乾淨的。

推送操作Heroku的主站故障日誌是在這裏 - http://pastebin.com/K2192h8A

希望有人可以讓我知道我做錯了。謝謝。

+0

所以,你是否嘗試從** Gemfile **中刪除'sqlite3'寶石,但是建築物已經失敗了? –

+0

是的,我做到了。我最終重建了整個事情,無法實現。 –

+0

好的,請重做以下內容:根據你在帖子中提出的** Gemfike **進行更改,發佈'bundle install',然後將** Gemfile **和** Gemfie.lock **添加到索引中,並且推向heroku。並在這裏再次給答案日誌。並在這裏顯示yuor heroku env。 –

回答

0

結束重建應用程序,現在已部署。

0

務必注意看看並確保你在正確的git分支下!

如果您正在使用

git push heroku master 

然後執行命令

git branch 

,並確保你是在主分支和其他地方沒有。您正在使用git推送到heroku,因此它並不總是導致問題的導軌應用程序。一定要

git add. 

git commit -m "comment" 

看着你的Rails應用程序犯錯了。

這個問題解決了這個問題。 Heroku Push - Error with Git Push to Heroku

0

下一次你BUIL一個新的應用程序,以擺脫所有你必須做大驚小怪的以下內容:rails new -d postgresql,如果你不安裝此做heroku addons:add heroku_postgresql:hobby-dev 未來heroku addons | grep POSTGRES最後heroku run rake db:migrate 應該是Heroku的插件它