Open vzina opened 2 years ago
在使用默认路径打包时,程序无法写入代理文件导致无法启动
$ 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
对 BASE_PATH 封装调用:getenv('BASE_PATH') ?? BASE_PATH 现在你可以使用 export BASE_PATH = . && php hyperf.phar start 进行启动
同理,对 CI 作业进行定义
在使用默认路径打包时,程序无法写入代理文件导致无法启动