如何使用Visual Studio 2017在Azure上部署Angular 6应用 [英] How to deploy Angular 6 app on Azure using Visual Studio 2017

查看:95
本文介绍了如何使用Visual Studio 2017在Azure上部署Angular 6应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用angular-cli创建了一个Angular应用程序:

I created an Angular app using angular-cli:

npm install -g @angular/cli

ng new my-app

现在,我想将此简单的Angular应用程序部署到Azure.

Now I want to deploy this simple Angular app to Azure.

我已发布设置我该怎么做?

I have published setting how can I do it?

推荐答案

经过数小时的研究,我发现它非常简单

After many hours of researching i found it and it is very simple

只需遵循步骤

  1. 运行ng build --prod(这将在您的应用程序中创建一个dist文件夹)
  2. 打开Visual Studio并选择打开 >> 网站,然后在dist文件夹中选择项目的路径,然后打开
  3. 然后右键单击您的项目,然后选择发布Web应用,然后选择已发布的配置文件设置并进行部署
  1. run ng build --prod (this will create a dist folder in your application)
  2. open visual studio and select open >> website select the path of your project inside dist folder and open
  3. then just right click on your project and select Publish Web App then select your published profile setting and deploy it

这篇关于如何使用Visual Studio 2017在Azure上部署Angular 6应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆