A
A
Anton Antonov2017-10-12 12:44:12
React
Anton Antonov, 2017-10-12 12:44:12

How to open create-react-app on hosting?

I made a react web application using create-react-app. Then I uploaded it to the hosting where it was not displayed forbiden.
Then I set the path to the index.html file in public/index.html, and only html/ was displayed.
How can I transfer it correctly so that everything is displayed and pulled up correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alvvi, 2017-10-12
@Antoskin

npm run build
throw the contents of the build directory into the root (eg public_html)
done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question