[英]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 clone
、 npm 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.