Azure CLI命令用于部署React.js代码到节点Azure App Service
部署ZIP文件的命令很清楚,但是我不清楚为节点项目创建适当的zip文件的过程是什么。对此的任何帮助将不胜感激。这是我尝试过的一些命令: AZ WebApp部署源config-zip-zip -n< app-name> -g< app-group> -src upload.zip
az webapp deploy-n< app-name> -g< app-group> -src-path ./build
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AZ WebApp部署
如果您使用
AZ WebApp部署
用于连续zip部署,则必须添加 scm_do_do_do_build_deployment = true 在 >门户网站或使用CLI命令 AZ WebApp配置AppSettings Sets setAZ WebApp部署,
如果您使用 AZ WebApp部署 kudu zip push部署用于Web应用程序部署。
Kudu认为ZIP部署不需要任何与构建相关的任务,例如 npm install 或Dotnet发布默认情况下。要启用kudu检测逻辑和构建脚本创建过程,请在zip文件中包含a .deployment 文件,其中包含以下内容:
[config] scm scm在deployment = true = true
如果要使用zip部署来启用构建自动化,则必须设置配置
scm确实在部署期间构建= true 。
refleeces
az webapp deploy
If you are using
az webapp deploy
for continuous Zip Deployment you have to add the SCM_DO_BUILD_DURING_DEPLOYMENT=true config either manually in a portal or using cli command az webapp config appsettings setaz webapp deployment
If you use az webapp deployment the kudu zip push deployment for a web app deployment.
Kudu thinks that zip deployments do not require any build-related tasks such as npm install or dotnet publish by default. To enable Kudu detection logic and the build script creation process, include a .deployment file in your zip file with the following content:
[config] SCM DO BUILD DURING DEPLOYMENT = true
If you want to use ZIP deployment for enable the build automation you can have to set the config
SCM DO BUILD DURING DEPLOYMENT = true.
Refereces