我无法部署到Heroku

时间:2017-09-03 05:27:24

标签: node.js git express heroku

我正在使用Node.js和Express构建一个站点。

$ git add .
$ git commit -am "Heroku"
$ heroku login
$ heroku addons:create heroku-postgresql:hobby-dev
$ git push heroku master

我试图在上面的过程中从Ubuntu部署到Heroku 以下信息&出现错误。

Counting objects: 12961, done.
Compressing objects: 100% (11964/11964), done.
fatal: Out of memory, malloc failed (tried to allocate 425298626 bytes)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
fatal: write error: Bad file descriptor

文件太多真的是一个问题吗?我认为 其实我不打算做git add。 也许,我认为这可能是由于node_modules下面的文件造成的 尝试删除并按照以下方式执行提交后,我没有顺利。

git rm --cached -r node_modules/
git commit -m "remove"

Heroku的免费计划似乎只能提供高达100 MB的容量,所以似乎可以使用的内存有限,也许可能是原因。但是,很难签署付费计划,我不明白。

0 个答案:

没有答案
相关问题