Angular development - Angular package deployment project (04)

I. Overview

  • ng buildbuild application
  • lite-server introduction and installation
  • lite-server deployment application
  • IIS Manager Deployment Application

Two ng buildbuild the application

2.1 Execute the following instructions to build the application

ng build

2.2 After the build is complete, a distfolder

2.3 There will be an error when opening index.html directly (requires the help of server deployment)

Three lite-server introduction and installation

3.1 Project address

https://github.com/johnpapa/lite-server

3.2 lite-server introduction

Lightweight Node server

3.3 lite-server installation

npm install --global lite-server

Four lite-server deployment applications

4.1 Execute the following command on the terminal to deploy the application

lite-server --baseDir="dist/project-name"

4.2 Automatically start project preview after execution

Five IIS Manager Deployment Application

5.1 Install and enable IIS

5.2 IIS add dist project application

5.3 Enter the URL directly or click the link to start the project

Six references

Guess you like

Origin blog.csdn.net/Calvin_zhou/article/details/130660155