T
T
tj572019-11-16 18:06:59
GitHub
tj57, 2019-11-16 18:06:59

Why can't I deploy my hosted React build via Heroku?

I have a React app that builds and runs successfully on localhost. I tried deploying it to a hosted server using Heroku by linking a Heroku-built app with a Github repository. I selected the repository and the master branch:
5dd00e7ae59d9340389112.jpeg
Next, I made a build, it was executed:
5dd00eb987786578209923.jpeg
When I opened the address of the deployed application, an error message appeared:
5dd00f0ace557847104969.jpeg
Deployment logs:
5dd01076259b0926148519.jpeg
What is the reason for this problem and how can I solve it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
abberati, 2019-11-16
@abberati

There is something wrong with your configuration. Heroku does npm start and there is no such script in your package.json.

M
Marfuny, 2020-04-29
@Marfuny

Good afternoon! Have you figured out how to download a React app from the Github repository on Heroku? I faced the same problem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question