Open the project in Visual Studio Code using the following command.
Step 3
Build the application by using the following command.
ng build --prod --base-href /eapp/
A folder is created in your project folder with a name list. Open C drive, create a new folder named IISDemo, and paste the dist folder content.
Deploy Angular Application on IIS
Now, open IIS, press the Windows + R key combination to bring up a run box. Then, type inetmgr and press Enter.
Now, IIS will start.
Now, right-click on Sites and click on "Add web sites".
Now, right-click on Demo and click on "Add Application". Fill the alias name and set the physical path.
Now, enable Directory Browsing.
Now, browse to your Angular application.
Right-click on the app, go to Manage Application and click on "Browse".
Summary
In this article, I have discussed how to deploy an Angular Application on IIS.