我的application目录我自己更改过:app
按照官方的:think文件里面也修改了,index.php也改过,反正就是项目已经运行了半年了没有问题。。。
项目最近要实现推送消息功能。。就安装了:topthink/think-worker
安装完成后,
根据官方问答配置了:
'worker_class' => 'app\http\Worker',
也复制了官方给的代码。。
直接运行:php think worker报错:
Starting Workerman http server...
Workerman[think] start in DEBUG mode
----------------------------------------- WORKERMAN -----------------------------------------
Workerman version:3.5.17 PHP version:7.2.13
------------------------------------------ WORKERS ------------------------------------------
proto user worker listen processes status
tcp root thinkphp http://0.0.0.0:2346 4 [OK]
---------------------------------------------------------------------------------------------
Press Ctrl+C to stop. Start success.
[UnexpectedValueException]
RecursiveDirectoryIterator::__construct(/home/wwwroot/abcd123/application/): failed to open dir: No such file or directory
Worker[4557] process terminated
worker[thinkphp:4557] exit with status 256
我看报错的代码。指向的是:application。。。