Deploy the front-end code to the server

Deploy the front-end code to the server

1. Build the project through idea, and dist file appears in c.

Open Xshell, connect to the server, click the picture below

Insert picture description here

2. Back up the code under the original deployed dist folder on the server and delete it, and transfer the dist generated in the first step to the deleted location.

3. Restart nginx, the command is as follows

/usr/local/nginx/sbin/nginx -s reload -c /usr/local/nginx/conf/nginx.conf

Guess you like

Origin blog.csdn.net/A_234_789/article/details/106269089