我一直在关注这个教程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/