gpt4 book ai didi

azure-devops - 在 linux app Service azure 上部署 react js web app

转载 作者:行者123 更新时间:2023-12-03 20:40:50 24 4
gpt4 key购买 nike

我在 Azure 上的 Linux 应用服务上部署了一个 React js 网站。但它没有部署在应用程序服务上。我已经使用 pm2 命令在 linux 环境下运行应用程序

pm2 serve /home/site/wwwroot/ --no-daemon

但是在错误日志中它给出了 pm2 not found 的错误。下面是一个

Container didn't respond to HTTP pings on port: 8080, failing site start.

Container for site has exited, failing site start

最佳答案

导航到您的网络应用程序的配置页面,并将此命令添加到启动命令:

npx serve -s

enter image description here

关于azure-devops - 在 linux app Service azure 上部署 react js web app,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67194441/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com