Skip to content

Stuck on Heroku deployment #339

May 20, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Finally got it running on Heroku with some trial and error. Steps I took

  1. Reset my local repo to HEAD
  2. Added Procfile to root
  3. Added web: npm start --prefix api to my Procfile
  4. Committed and pushed to Heroku repo
  5. Got an error: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
  6. In api/server/index.js on line 12, I had to replace localhost with 0.0.0.0
  7. Commited and pushed again.
  8. App deployed and loaded, but now getting Error: ENOENT: no such file or directory, stat '/app/client/dist/index.html'
  9. I saw dist/ was in my .gitignore so I removed it and committed that directory and pushed again
  10. Voila!

I know committing dist/ was not the correct way, but I'm n…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@fuegovic
Comment options

@SethTurin
Comment options

@javon27
Comment options

@Cfomodz
Comment options

Answer selected by danny-avila
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants