joanhey / AdapterMan

Run almost any PHP app faster and asynchronously with Workerman, without touch 1 line of code in your fw or app. Also use it as Serverless.
https://twitter.com/adaptermanphp
MIT License
759 stars 50 forks source link

Missing Config FileWorker[18068] process terminated #13

Closed imzlh closed 1 year ago

imzlh commented 1 year ago

When I try to run it,I saw: error My source code: <?php

require_once DIR . '/vendor/autoload.php';

use Adapterman\Adapterman; use Workerman\Worker;

Adapterman::init();

$http_worker = new Worker('http://0.0.0.0:8080'); $http_worker->count = 1; $http_worker->name = 'typecho';

$http_worker->onWorkerStart = static function () { //init(); require DIR.'/app/index.php'; };

$http_worker->onMessage = static function ($connection, $request) {

$connection->send(run());

};

Worker::runAll(); Can you help me?Thanks.

joanhey commented 1 year ago

Which framework or app are you using ?

Do you catch all the Exceptions and errors?

But the error, looks very clear. Your app don't find the Config File. It isn't a problem from Adapterman.

joanhey commented 1 year ago

I send a PR to prevent the confusion.

The error is: App error message |> Workerman message Missing Config File |> Worker[1084] process terminated