简体   繁体   English

在 azure 上使用 asp.net core 3 部署 vue 应用程序时,nmp 如何运行构建工作

[英]How can nmp run build work when deploying vue app with asp.net core 3 on azure

我正在尝试在 azure 上部署我的 vue asp.net core 3 应用程序,我无法通过 Visual Studio 发布我的应用程序,我无法 NPM 运行构建并将其移动到 IIS 任何想法?

Using https://blog.bitsrc.io/getting-started-with-vue-js-in-net-core-using-visual-studio-efbb43703630 as a starting point, I didn't encounter any issues when publishing the GitHub repo to an Azure App Service, as shown below.使用https://blog.bitsrc.io/getting-started-with-vue-js-in-net-core-using-visual-studio-efbb43703630作为起点,我在发布GitHub时没有遇到任何问题存储到 Azure 应用服务,如下所示。

在此处输入图片说明

Since the VueJs is within a .NETCORE app, I did opt for a Linux App Service plan, which meant a longer startup time as the base images were being pulled.由于 VueJs 在 .NETCORE 应用程序中,我确实选择了 Linux 应用程序服务计划,这意味着在拉取基本映像时需要更长的启动时间。 You didn't specify what errors you had but a simple git clone , npm i , F5 to make sure the app ran;你没有指定你有什么错误,而是一个简单的git clonenpm i 、 F5 来确保应用程序运行; I created the publish profile within Visual Studio and published.我在 Visual Studio 中创建了发布配置文件并发布了。 The publish profile should set the startup command of the app service to dotnet <your-project>.dll发布配置文件应将应用服务的启动命令设置为dotnet <your-project>.dll

在此处输入图片说明

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

相关问题 将ASP.Net 5 Web App部署到Azure时如何删除现有文件 - How can I delete existing files when deploying an ASP.Net 5 Web App to Azure 将 asp.net 核心应用程序部署到 azure 后出错 - Error after deploying asp.net core app to azure 在使用git部署到Azure时,如何在我的asp.net核心项目中运行gulp.js? - How do I run gulp.js in my asp.net core project when deploying to Azure using git? 将 ASP.NET CORE 3.1 MVC 应用程序部署到 azure 时出现问题 - Problem deploying ASP.NET CORE 3.1 MVC app to azure 将 ASP.NET Core 应用程序部署到 Azure 会导致空白页 - Deploying ASP.NET Core App to Azure results in blank pages 连接/添加数据库时,将 ASP.NET 核心应用程序部署到 Azure 失败 - Deploying ASP.NET Core app to Azure fails when connecting to / adding the database 将ASP.net Core 2.0部署到Azure - Deploying ASP.net Core 2.0 to Azure 如何手动将 ASP.NET 核心应用程序的部署版本复制到 Azure web 应用程序(应用服务) - How can I manually copy a deployment build of ASP.NET Core application to Azure web application (App Service) 无法在 Azure 容器 web 应用程序中运行 ASP.Net Core Docker 图像 - Can't get a ASP.Net Core Docker Image to run in Azure container web app 部署多项目 ASP.NET 核心 web 应用程序到 Azure 应用程序服务使用 ZE1ADBCBB92C622D0B3E Actions61 - Deploying multi-project ASP.NET Core web app to Azure App Service using Github Actions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM