Asp. Net Core, Angular 4 CLI site deployment, angularcli

Source: Internet
Author: User

Asp. Net Core, Angular 4 CLI site deployment, angularcli

Briefly record how to deploy Asp. Net Core Web Application + Angular app projects under IIS.

Environment: IIS 10, Asp. Net Core 2.0, Angular 4 CLI

Steps:

From step 1 to step 2, you can use batch processing instead to save time.

Main. bat

@ Echo offclsdel/q E: \ Projects \ Trials \ CJ \ wwwroot \ * del/q E: \ Projects \ Trials \ CJ \ bin \ Release \ netcoreapp2.0 \ publish \ * del/q E: \ Projects \ Trials \ CJ \ deployment \ * del/q E: \ Projects \ Trials \ CJ \ deployment \ wwwroot \ * echo all history files have been cleared echo start to publish Angular CLI program call cj_angular_publish.batecho start to publish ASP. net core program xcopy/s E: \ Projects \ Trials \ CJ \ cjweb \ wwwroot E: \ Projects \ Trials \ CJ \ wwwrootcd E: \ Projects \ Trials \ CJ \ CJdotnet publish-c releaseecho start IIS File deployment rem iisreset/stopxcopy/s E: \ Projects \ Trials \ CJ \ bin \ Release \ netcoreapp2.0 \ publish E: \ Projects \ Trials \ CJ \ deploymentrem iisreset/start @ pause

Cj_angular_publish.bat

E: cd E: \ Projects \ Trials \ CJ \ cjwebng build-env = prod

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.