1. Copy the front-end files and remove node_modules. And package root.zip
2. Upload liunx and decompress it, and locate the root directory of the decompressed file. Such as root/
3, installation, cnpm -install. Complete.
4. Configure nginx.conf .
location / {
root html;//It can be an absolute path
index index.html index.htm;
try_files $uri /index.html;
}
5. Start nginx -c nginx.conf
Front-end react is published to nginx
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326643119&siteId=291194637
Recommended
Ranking