简体   繁体   English

当前部署分支是“main”,但没有任何内容被推送到它

[英]The current deployment branch is ''main'', but nothing has been pushed to it

When following the Azure App Service PHP quick start guide you receive the below error;按照 Azure 应用服务 PHP 快速入门指南操作时,您会收到以下错误;

remote: The current deployment branch is ''main'', but nothing has been pushed to it
remote: Error - Changes committed to remote repository but deployment to website failed.
remote: Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
remote:    at Kudu.Console.Program.PerformDeploy(String appRoot, String wapTargets, String deployer, String lockPath, IEnvironment env, IDeploymentSettingsManager settingsManager, TraceLevel level, ITracer tracer, ITraceFactory traceFactory, IOperationLock deploymentLock)
remote:    at Kudu.Console.Program.Main(String[] args)
remote: Aborted (core dumped)

The target deployment branch was set to 'main' instead of main despite following the instructions.尽管遵循了说明,但目标部署分支仍设置为'main'而不是main

Change改变

  • az webapp config appsettings set --name <app-name> --resource-group myResourceGroup --settings DEPLOYMENT_BRANCH='main'

To

  • az webapp config appsettings set --name <app-name> --resource-group myResourceGroup --settings DEPLOYMENT_BRANCH=main

Note: I was using azure cli via cmd.exe except for the line setting php version as the Pipe character caused issues.注意:我通过 cmd.exe 使用 azure cli,但行设置 php 版本除外,因为 Pipe 字符导致了问题。 It would be interesting know if using Cloud Cli would have avoided the issue entirely.知道使用 Cloud Cli 是否可以完全避免该问题会很有趣。

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

相关问题 一旦数据被推送,有没有办法改变索引字段的数据类型? - is there any way to change datatype of index field once data has been pushed? 如何统计当前用户记录的数据量? - how do I count data that has been recorded by the current user? 当主分支恢复时,如何将我的工作分支合并到主分支? - How to merge my working branch to main branch as main branch revert? 功能分支部署与分支保护部署 - Feature Branch Deployment vs Branch-Protected Deployment 如何检查当前分支头与 GitLab 中的默认分支的比较 - How to check current branch head compare to default branch in GitLab Google 令牌已过期或被撤销 - Google Token has been expired or revoked Firebase reCAPTCHA 已在此元素中呈现 - Firebase reCAPTCHA has already been rendered in this element Datastore plugin has not been added to amplify Flutter - Datastore plugin has not been added to amplify Flutter Firestore 无法修改已提交的 WriteBatch - Firestore Cannot modify a WriteBatch that has been committed 主分支和子分支设置的 AWS CodeDeploy appspec.yml? - AWS CodeDeploy appspec.yml for Main and Sub branch setting?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM