How to deploy the project on the server after creact-react-app development, the key is how to deploy express.

the project is built with react scaffolding. The data is obtained from the backend service built by express-generator
packaged file directory:

srcservice:

homepage:"."is added to package.json. The index.html page can be directly run in build, but no data can be obtained.

now to deploy to the server, the apache tomcat, used asks how to obtain the data and how to deploy the express on the server. You can use anything else without apache tomcat. Ask for advice.

Menu