hyperf / phar

[READ ONLY]
MIT License
4 stars 0 forks source link

Hyperf\RpcClient\ProxyFactory 使用RPC自动生成客户端功能与打包器冲突 #4

Open vzina opened 2 years ago

vzina commented 2 years ago

image

在使用默认路径打包时,程序无法写入代理文件导致无法启动

$ php hyperf-skeleton.phar start       
#!/usr/bin/env php
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\RpcMultiplex\Listener\RegisterProtocolListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\RpcClient\Listener\AddConsumerDefinitionListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\JsonRpc\Listener\RegisterProtocolListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\ExceptionHandler\Listener\ExceptionHandlerListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\DbConnection\Listener\RegisterConnectionResolverListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Config\Listener\RegisterPropertyHandlerListener listener.
[1]    80421 segmentation fault  php hyperf-skeleton.phar start
wheakerd commented 3 weeks ago

对 BASE_PATH 封装调用:getenv('BASE_PATH') ?? BASE_PATH 现在你可以使用 export BASE_PATH = . && php hyperf.phar start 进行启动

同理,对 CI 作业进行定义