sqlite3阻塞推送到Heroku

时间:2014-01-18 06:20:17

标签: ruby heroku sqlite ruby-on-rails-4

我已经按照这里的所有问题进行了检查,但仍然没有向Heroku发送错误。

这是我到目前为止所做的:

  1. 从gemfile,bundle,git commit和git push中完全删除sqlite3到Heroku。
  2. 将sqlite3放入group:development,:test do,bundle,git commit和git push to Heroku。
  3. 卸载并重新安装sqlite3 gem,bundle,git commit和git push to Heroku。
  4. 删除Gemlock文件,bundle,git commit和git push to Heroku。
  5. 宝石文件:

    group :development, :test do
        gem 'sqlite3'
    end
    
    group :production do
        gem 'rails_12factor'
        gem 'pg'
    end
    

    Git状态很干净。

    Git push heroku master failure log is here - http://pastebin.com/K2192h8A

    希望有人能让我知道我做错了什么。谢谢。

3 个答案:

答案 0 :(得分:0)

结束重建应用程序,现在已部署。

答案 1 :(得分:0)

始终注意查看并确保您在正确的git分支下!

如果您正在使用

git push heroku master

然后执行命令

git branch

并确保您在主分支下,而不是在其他地方。你正在使用git推送到heroku所以它并不总是你的rails应用程序导致问题。一定要

git add.

git commit -m "comment"

在查看你的rails应用程序之前的错误。

这个问题为我解决了这个问题。 Heroku Push - Error with Git Push to Heroku

答案 2 :(得分:0)

下次您构建一个新的应用程序以摆脱所有大惊小怪时,您必须执行以下操作:rails new -d postgresql,如果您没有安装heroku插件,请执行此操作heroku addons:add heroku_postgresql:hobby-dev 下一个heroku addons | grep POSTGRES,最后是heroku run rake db:migrate 应该是它