将代码推到本地git azure时,PHP手工艺误差

发布于 2025-02-02 17:15:55 字数 954 浏览 0 评论 0原文

php:7.4.xx

laravel:8

Azure App服务部署中心使用本地git

我正在为Laravel项目设置CI/CD Azure应用程序服务。当尝试将代码推到Azure本地git时,我会发现问题。

中放入的几乎PHP手工代码。

Script php artisan clear-compiled handling the post-install-cmd event returned with error code 1

我在Composer img src =“ https://i.sstatic.net/5nklx.jpg” alt =“在此处输入图像说明”>

来自Azure的错误日志文件:

但是,当我删除

"post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],

Composer.json脚本时,它有效:

请对此问题有任何想法吗? 先感谢您!

PHP: 7.4.xx

Laravel: 8

Azure App services Deployment Center uses Local git

I'm setting up CI/CD for my Laravel project to Azure app service. I got the issue when try to push the code to Azure Local git.

Almost the php artisan code that I put in composer.json file post-install-cmd will get the error:

Script php artisan clear-compiled handling the post-install-cmd event returned with error code 1

enter image description here

The error log file from Azure:
enter image description here

But when I remove

"post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],

out of composer.json scripts, it works:
enter image description here

Any idea on this issue please?
Thank you in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文