php - Azure GitHub 部署问题

标签 php azure github azure-web-app-service

我一直在关注这个教程https://learn.microsoft.com/en-us/azure/app-service/containers/tutorial-php-mysql-app

但是唯一的区别是我正在尝试上传我自己的网络应用程序而不是演示“Laravel Tasks”

我已将 PHP 版本从 7.0 更改为 7.3

当我执行 Git Push Azure Master 步骤时,一切正常,直到出现此错误。

remote: Copying files to destination directory '/home/site/wwwroot'... remote: ......................................................................... remote: rsync: failed to set times on "/home/site/wwwroot/vendor/bin/composer": Operation not permitted (1) remote: rsync: failed to set times on "/home/site/wwwroot/vendor/bin/dep": Operation not permitted (1) remote: rsync: failed to set times on "/home/site/wwwroot/vendor/bin/jp.php": Operation not permitted (1) remote: rsync: failed to set times on "/home/site/wwwroot/vendor/bin/jsonlint": Operation not permitted (1) remote: rsync: failed to set times on "/home/site/wwwroot/vendor/bin/php-parse": Operation not permitted (1) remote: rsync: failed to set times on "/home/site/wwwroot/vendor/bin/phpunit": Operation not permitted (1) remote: rsync: failed to set times on "/home/site/wwwroot/vendor/bin/psysh": Operation not permitted (1) remote: rsync: failed to set times on "/home/site/wwwroot/vendor/bin/upgrade-carbon": Operation not permitted (1) remote: rsync: failed to set times on "/home/site/wwwroot/vendor/bin/validate-json": Operation not permitted (1) remote: rsync: failed to set times on "/home/site/wwwroot/vendor/bin/var-dump-server": Operation not permitted (1) remote: ................................................................................................................................................................................................................................ remote: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]

有人能指出我正确的方向吗?

最佳答案

您是否正在部署到 Windows 或 Linux 版本的 Azure 应用服务?有几件事值得尝试:

断开部署源与主存储库的连接并重新连接,看看是否有帮助。 如果您要部署到暂存槽,请尝试部署到生产槽。

请尝试通过启动脚本安装 Composer。 默认情况下,Kudu不运行 Composer。要在 Kudu 部署期间启用 Composer 自动化,您需要提供 custom deployment script .

此外,请查看有用的博客,其中包含使用 WebApp for Containers 时应了解的内容 - https://blogs.msdn.microsoft.com/waws/2017/09/08/things-you-should-know-web-apps-and-linux/

关于php - Azure GitHub 部署问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59642550/

相关文章:

php - 多供应商在线购物平台

azure - 如何使用本地 JSON 文件在 Terraform Azure PolicyDefinition 中创建?

c# - Github OAuth : The remote server returned an error (403) Forbidden

PHPUnit stub 抛出异常但不允许被捕获

php - 禁用(删除)WooCommerce 4.3.x 中的营销菜单选项

azure - 为有问题的 azure databrick 添加 key 保管库范围

Azure IoT 中心注册表管理器更新许多孪生 - 仅当属性存在时

powershell - 如何在 GitHub 工作流/操作中的 PowerShell 下运行名称中包含变量的脚本

git 状态(没有提交,工作目录干净),但是已提交更改

php - 将查询从 Android 发送到远程服务器数据库的正确方法