Front-end engineering package deployment

Pack

Just execute the second script build directly

The packaged files will be placed in the dist directory

 

 deploy

  • NGINX: It is a lightweight web server/reverse proxy server and email (IMAP/POP3) proxy server. It is characterized by less memory usage and strong concurrency capabilities, and is widely used in large Internet companies.
  • Official website: nginx news
  • document
    • confg: configuration file directory
    • html: static resource directory
    • logs: log files
    • temp: temporary file
    • nginx.exe: startup file
  • Deployment: Copy the files in the packaged dist directory to the html directory in the nginx installation directory

  •  Start: double-click the nginx.exe file, the Nginx server occupies port 80 by default
  • Check whether it is started in the task manager. If it fails to start, look at the error log in the log file. It may be that the port number is occupied. Change the Ngin startup port (search for information by yourself)

     

  • After confirming that the startup is successful, enter localhost:+port number in the browser address bar and press Enter

  • The result of the operation is as follows:

Successfully display the packaged front-end page 

 

Guess you like

Origin blog.csdn.net/weixin_64939936/article/details/131621937