Search code examples
reactjsherokucreate-react-app

create-react-app R14 (Memory Quota Exceeded) on Heroku


More or less only applicable to beginners...

First time deployment of application on Heroku and received the following errors after using the standard Heroku Deploy instructions in the Heroku Dashboard:

2017-05-10T21:43:59.732215+00:00 heroku[web.1]: Process running mem=543M(106.1%)
2017-05-10T21:43:59.732277+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)

Heroku Deploy Instructions:

$ git add .
$ git commit -am "make it better"
$ git push heroku master

Solution

  • Turns out that I was deploying the application as it is in the dev environment, which WOULD cause a significantly larger memory use. My thinking is that it would be running the entire dev environment on Heroku...

    Instead, you need to build the application and deploy that (static) version of the application. This is done using the following!

    Create-React-App Deployment

    And adding this buildpack to the Heroku. Instructions on site:

    create-react-app buildpack

    I have no idea how this actually works.