Error deploying to heroku

后端 未结 4 1685
刺人心
刺人心 2021-02-10 00:37

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
         


        
4条回答
  •  眼角桃花
    2021-02-10 01:10

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

    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.

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

    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'
    

    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.

提交回复
热议问题