使用Visual Studio Code将简单的Angular 8应用程序部署到Azure [英] Deploy simple Angular 8 app to Azure with Visual Studio Code

查看:69
本文介绍了使用Visual Studio Code将简单的Angular 8应用程序部署到Azure的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有看过几个在线教程.我正在尝试将Angular 8.3 Web应用程序部署到Azure.我尝试创建Windows和Linux的Web应用程序,但始终为我提供标准的hostingstart.html页面或发生内部服务器错误消息.我尝试手动上传dist文件以及在Visual Studio Code中使用Azure App Service扩展.

所有教程似乎都与当前的Visual Studio Code和Azure设置已过时.是否有人可以指导我逐步完成使Angular应用程序在Azure上运行的步骤?我也有一个.NET Core api可以使用,但是以后可以解决.

老实说,我不知道正确的步骤是什么,或者我的应用程序是否存在关于节点版本或类似问题的错误.我的应用程序在本地IIS服务器上运行良好,包括用于IIS的URL重写模块和正确设置的web.config文件.

谢谢!杰里米

解决方案

有一个

或者,打开命令面板(F1),键入部署到Web应用程序,然后选择"Azure App Service:部署到Web App"命令.然后为您的应用选择当前文件夹,并按照提示进行操作.

I've followed several online tutorials with no luck. I am trying to deploy an Angular 8.3 web app to Azure. I tried creating a web app, both Windows and Linux, but always gives me either the standard hostingstart.html page or internal server error occurred message. I tried manually uploading the dist files as well as using the Azure App Service extension in Visual Studio Code.

All of the tutorials seem to be out of date from current Visual Studio Code and Azure settings. Is there someone who can walk me through the steps to get my Angular app running on Azure? I also have a .NET Core api to go along with it, but that can be addressed later.

I honestly have no idea what the correct steps are or if there is something wrong with my app regarding versions of node or anything like that. I have the app running fine on a local IIS server including URL Rewrite module for IIS and a web.config file set up correctly.

Thank you! Jeremy

解决方案

There is a Azure App Service management extension for Visual Studio Code, with this you will be able to deploy and scale web.

There is a tutorial about how to deploy .net core web with visual studio code. Except this way , you could choose deploy to web app in the Azure App Service explorer.

Alternately, open the Command Palette (F1), type deploy to web app, and select the Azure App Service: Deploy to Web App command. Then select your current folder for the app and follow the prompts.

这篇关于使用Visual Studio Code将简单的Angular 8应用程序部署到Azure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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