I'm quite newbie in react , and, even I have seen similar answers in stackoverflow and google, I can't make it work.
I have created an application via 'react-scripts' , and it worked awesome (just npm start . Nothing fancy).
My problem arrives when I try to deploy this application in my Apache server .
1) I execute 'npm build' . Build folder is created with (I guess ) a deployable version .
2) I copy this build folder to my Apache server and, when I try to access, I see the head and the tittle, but no content. Everything white .
I receive this message after 'npm run build' :
The project was built assuming it is hosted at the server root. To override this, specify the homepage in your package.json. For example, add this to build it for GitHub Pages:
"homepage": "http://myname.github.io/myapp",
The build folder is ready to be deployed. You may serve it with a static server:
npm install -g serve serve -s build
I guess 'serve' is a http server, but I want to deploy my app in Apache . As I understand, should be enough to copy to Apache folder . There's something I'm missing . Could you help me, please ?