I am building a site with Node.js and Express.
$ git add .
$ git commit -am "Heroku"
$ heroku login
$ heroku addons:create heroku-postgresql:hobby-dev
$ git push heroku master
I am trying to deploy from Ubuntu to Heroku in the above procedure The following message & error appears.
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
Is it really a problem that there are too many files? I think Actually I do not intend to do git add. Perhaps, I think that it may be caused by having files below node_modules I did not go well after trying remove and doing the commit as follows.
git rm --cached -r node_modules/
git commit -m "remove"
Heroku's free plan seems to be available only up to 100 MB of capacity, so it seems that there is a limit to the memory that can be used, perhaps it may be the cause. However, it is difficult to sign a paid plan, I do not understand.