简体   繁体   English

Angular 应用程序部署 IIS 自动化,如使用 Docker/Jenkins 等

[英]Angular Application Deployment IIS Automation like using Docker/Jenkins etc

I am deploying angular application in IIS server manually like copying the build from my system to particular IIS server location.我正在 IIS 服务器中手动部署 angular 应用程序,例如将构建从我的系统复制到特定的 IIS 服务器位置。

My code is maintained in TFS repository.我的代码保存在 TFS 存储库中。

Backend for my application is Mulesoft and Mulesoft is deployed in cloudhub and front end will be deployed to IIS.我的应用程序的后端是 Mulesoft,Mulesoft 部署在 cloudhub 中,前端将部署到 IIS。

I need to know do we have any file so I can configure my steps so once I do run it will build automatically.我需要知道我们是否有任何文件,以便我可以配置我的步骤,以便一旦我运行它就会自动构建。

Angular CLI to automate your development workflow:用于自动化开发工作流程的 Angular CLI:

  • create a new Angular application创建一个新的 Angular 应用程序

  • run a development server with Live Reload support to preview your application during development运行具有 Live Reload 支持的开发服务器以在开发期间预览您的应用程序

  • add features to your existing Angular application向现有的 Angular 应用程序添加功能

  • run your application's unit tests运行应用程序的单元测试

  • run your application's end-to-end (E2E) tests运行应用程序的端到端 (E2E) 测试

  • build your application for deployment to production.构建您的应用程序以部署到生产环境。

To start up your Angular application with the Angular CLI, you simply run the following command from the command window from inside the root folder of your project:要使用 Angular CLI 启动 Angular 应用程序,您只需从项目根文件夹内的命令窗口运行以下命令:

ng serve

After executing this command you can navigate to http://localhost:4200 to start your application in your browser.执行此命令后,您可以导航到 http://localhost:4200 以在浏览器中启动您的应用程序。 The Angular CLI comes with the Webpack bundling tool and uses Webpack to compile, build and bundle all the TypeScript code and starts a Webpack development web server that runs and listens to requests on port 4200 by default. Angular CLI 自带 Webpack 捆绑工具,使用 Webpack 编译、构建和捆绑所有 TypeScript 代码,并启动一个 Webpack 开发 Web 服务器,该服务器默认运行和侦听端口 4200 上的请求。

Of course, the real power of the Angular CLI is its support for live reloading of your application.当然,Angular CLI 的真正强大之处在于它支持实时重新加载您的应用程序。 While still running, the Webpack process is actively watching the src folder for file changes.在仍在运行时,Webpack 进程会主动监视 src 文件夹中的文件更改。 When a file change is detected the application is automatically rebuilt and reloaded in the browser.当检测到文件更改时,应用程序会自动重建并在浏览器中重新加载。

refer this below link for more detail:有关更多详细信息,请参阅以下链接:

Angular 2 continuous deployment with jenkins and seperate production server 使用 jenkins 和单独的生产服务器进行 Angular 2 持续部署

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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