部署到heroku时出错 [英] Error deploying to heroku

查看:122
本文介绍了部署到heroku时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮忙。我绝对不知道什么是错的。 Rails应用程序可在我的本地计算机上运行。

Please help. I have absoluty no idea what's wrong. The rails app works on my local machine.

如果我这样做的话:

If I do this:

git push heroku master

我得到这个:

Counting objects: 4195, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3944/3944), done.
Writing objects:  72% (3009/4178), 9.99 MiB | 73 KiB/s
Compressing objects: 100% (3944/3944), done.
**Connection to 10.46.xxx.xxx closed by remote host.KiB/s   
error: pack-objects died of signal 13
error: failed to push some refs to 'git@heroku.com:gentle-rain-xxxx.git**


推荐答案

我刚刚处理了24小时的这个地狱。我重新复制了回购协议,销毁了应用程序,重新打包,修剪了整个9码。

I just dealt with 24 hours of this hell. I re-cloned repos, destroyed apps, repacked, pruned... the whole 9 yards.

事实证明,我有一个.txt文件,大小为250MB大小,即使我已经从我的主分支中删除它,仍然存在于我的本地(以及github)缓存中。

It turned out that I had a .txt file which was ~250MB in size that, even though I had removed it from my master branch, was still present in my local (as well as github) cache.

我检查了这个页面并且无意中在这里找到我的答案:
https://help.github.com/articles/remove-sensitive-data

I checked out this page and inadvertently found my answer here: https://help.github.com/articles/remove-sensitive-data

.txt文件以前位于文档/文件夹中,因此我将此命令指向文件在任何提交中的位置并运行它。

The .txt file had previously been in the doc/ folder, so I pointed this command at where the file would have been in any commits and ran it.

git filter-branch --index-filter 'git rm --cached --ignore-unmatch doc/US.txt'

如果您意识到您拥有某种不需要的静态资产在你的回购,并导致你得到信号13错误。

This is very useful if you realize you have static assets of some sort that don't have to be in your repo and are causing you to get the signal 13 error.

这篇关于部署到heroku时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆