[Angular] 004 Deployment to IIS

Subscribers:
3,080
Published on ● Video Link: https://www.youtube.com/watch?v=c37uxdMmjkw



Duration: 8:03
279 views
3


///// Dev Build vs Production Build: /////
1. Prod build uses AOT Compilation. So, compiler doesn't require to be sent to the browser. So, this build is smaller.
2. Dev build uses JIT Compilation. So, compiler needs to be sent to the browser. So, this build is larger.
3. Prod build is also smaller because it does minification, uglification and treeshaking. Dev build doesn't do these activities.
4. Prod build does not have source-map files by default. Dev build has them by default. This is also why Prod build is smaller than the Dev build.

Creating Dev Build or Prod Build generates dist folder. You may deploy it in any web-server like IIS, Apache Tomcat, IBM WebSphere or Oracle GlassFish.

///// Steps to deploy an Angular project onto IIS: /////
Run this in your workspace.
ng build --prod --base-href /HelloWorld/
It creates dist folder in your workspace.
Open IIS.
Create a website and give the physical path of dist folder.
Create an application in this website and give the name as the base-href value (HelloWorld in our case) and the physical path of dist/HelloWorld folder.

================== CONTACT ME =================

Mobile: +91 9158851250
Address: F-102 Sanskriti Society, Kaspate Wasti, Wakad, Pune 411057

================ LEGAL DISCLAIMER ==============

This video is an intellectual property of Mr. Amit Shirasao. Views expressed on this video are his personal views. Any of his previous/current/future employers or organizations that he may be affiliated with do not, in any way, take any responsibility for the same.

Aspire as a brand and channel along with all the videos posted under it are an intellectual property of Mr. Amit Shirasao. Aspire - Crisp Tutorials brand and channel is a subsidiary of Aspire brand and channel. So, by definition, every video posted under Aspire - Crisp Tutorials is also an intellectual property of Mr. Amit Shirasao.

Views expressed in any video under Aspire are strictly the personal views of the creator of the video. Creator of the video is the person whose name is mentioned in the video's thumbnail and on the very first screen which comes just after the intro. Please note that Mr. Amit Shirasao is not necessarily the creator of every video on Aspire and hence does not take responsibility of the views expressed in the videos which he did not create.

Please note that besides owning and running Aspire, Mr. Amit Shirasao may also be employed by some other company. Any past, present or future employers of Mr. Amit Shirasao does not in any way take any responsibility for this channel or the views expressed on it.