将代码推到本地git azure时,PHP手工艺误差
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 =“在此处输入图像说明”>
但是,当我删除
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
请对此问题有任何想法吗? 先感谢您!
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
The error log file from Azure:
But when I remove
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
out of composer.json scripts, it works:
Any idea on this issue please?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论