简体   繁体   中英

How deploy an Angular 2 application to windows server(IIS)?

At the moment when I build my Angular 2 application, I need connect to windows server using RDP and copy/paste folder with the built project. I want do it automatically. My build config based on https://github.com/AngularClass/angular2-webpack-starter (Angular 2 + Webpack).

I have idea with FTP. I can install FTP on windows server and after I will transfer file using my config file. But I think exist better way for it.

You can open your deploy folder as a share folder and directly copy paste to the share folder, or copy to share folder then execute a copy script

For something more complicated, assuming you have your project on some sort of version control, you can manage a build process through Jenkins and have it clone your repo and write a script to build/copy/deploy your project to the proper directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM