【问题标题】:git push heroku hangsgit push heroku 挂起
【发布时间】:2013-03-10 14:58:01
【问题描述】:

免责声明:我是菜鸟。

我正在使用http://ruby.railstutorial.org/ 学习 ruby​​,直到两天前一切正常。

我不确定到底出了什么问题,但我无法再推送到 heroku,它开始正常但随后挂在以下行(这些是控制台上的最后一行):

-----> Discovering process types
       Procfile declares types      -> (none)
       Default types for Ruby/Rails -> console, rake, web, worker

事实: Git remove -v 工作正常。 该应用程序在我的电脑上运行良好。 我的系统:最新的 Mac OS、RoR 应用程序。 我的应用在这里:https://github.com/eladsof/sample_app

任何想法为什么会发生这种情况?

【问题讨论】:

    标签: ruby-on-rails git heroku github


    【解决方案1】:

    您的 git 存储库中有大约 50MB 的数据文件。移除它们后似乎一切正常。

    尝试使用类似这样的方式删除它们(如果您不需要它们)

    git rm ./db/pg_xlog/000000010000000000000001
    git rm ./db/pg_xlog/000000010000000000000002
    git rm ./db/pg_xlog/000000010000000000000003
    git rm db/pg_clog/0000
    git commit -m 'removing big files'
    

    然后再次尝试推送。

    (当然,假设您不需要它们)

    【讨论】:

    • 你打败了我 :) 我只是在测试它 - 摆脱 DB 文件夹中的所有 PG 东西修复它,我刚刚成功部署它没有它。删除它们,或使用 .slugignore,这样它们就不会最终被编译到您的 Heroku slug 中。
    • 非常感谢!这解决了问题。
    猜你喜欢
    • 2013-02-22
    • 2017-06-04
    • 2013-09-04
    • 2012-03-06
    • 1970-01-01
    • 2011-05-23
    • 2015-08-28
    • 2018-02-07
    • 1970-01-01
    相关资源
    最近更新 更多