I made an application using create-react-app
, set up TravisCI, and deployed to Heroku. The application deploys (the server is running, I've shelled in and saw files), but the /build
folder isn't present.
According to this answer, this is because I've listed /build
in my .gitignore
file and I can fix the problem by removing that entry; however, the Heroku dev center recommends against keeping generated files in version control.
Is there a way to mark my /build
folder as required in production? Am I thinking about this the correct way?