PHP的工匠优化超时只对作曲家安装 [英] php artisan optimize times out only on composer install

查看:242
本文介绍了PHP的工匠优化超时只对作曲家安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行在Azure上一个laravel应用程序。事情正在朝着正确的方向前进,作曲家安装没有使用在所有的工作。但是现在,在PHP工匠优化命令超时:

运行安装作曲家使得PHP工匠优化超时

但是,在运行PHP工匠优化分别是一点问题都没有:

只运行PHP的工匠优化是没有问题的

什么可能是这个原因吗?

编辑:

删除symfony的文件夹没有帮助,那是不是当我运行作曲安装指令present:

Symfony的文件夹没有present

增加超时限制并没有帮助,我增加了它在这两个Azure和在composer.json文件:

composer.json文件

这仍然给我超时,再次安装symfony的组件后:

的Symfony安装

...

在PHP工匠再次优化到达

,2000年秒超时


解决方案

&@Rkey放大器; @cabs,按我对这个问题的认识,我想指出的是,作曲家不完全支持在Azure上。问题是,它的使用被阻塞在Azure上的taskkill命令。我们都意识到这一点,并请随时根据在的 https://feedback.azure.com/forums/34192--general-feedback

I'm running a laravel app on Azure. Things are moving in the right direction, composer install didn't use to work at all. Now however, the "php artisan optimize" command times out:

However, running "php artisan optimize" separately is no problem at all:

What could be the cause of this?

Edit:

Deleting the symfony-folder does not help, it is not present when I run the "Composer install"-command:

Increasing the timeout-limit does not help either, I increased it in both azure and in the composer.json file:

This still gives me a timeout, after installing the symfony-components again:

...

解决方案

@Rkey & @cabs, per my understanding on this question, I wanna point out that Composer is not fully supported on Azure. The issue is that it’s using Taskkill command which is blocked on Azure. We are aware of this and please feel free to submit an idea or suggestion based on the experience with Azure at https://feedback.azure.com/forums/34192--general-feedback.

这篇关于PHP的工匠优化超时只对作曲家安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆