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