Skip to content

Commit b5c8f19

Browse files
authored
Fix FileNotFound error (#421)
1 parent e8afef7 commit b5c8f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/StartRoadRunnerCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ public function handle(ServerProcessInspector $inspector, ServerStateFile $serve
7777
$roadRunnerBinary,
7878
'-c', $this->configPath(),
7979
'-o', 'http.address='.$this->option('host').':'.$this->option('port'),
80-
'-o', 'server.command='.(new PhpExecutableFinder)->find().' ./vendor/bin/roadrunner-worker',
80+
'-o', 'server.command='.(new PhpExecutableFinder)->find().' '.base_path('vendor/bin/roadrunner-worker'),
8181
'-o', 'http.pool.num_workers='.$this->workerCount(),
8282
'-o', 'http.pool.max_jobs='.$this->option('max-requests'),
8383
'-o', 'rpc.listen=tcp://'.$this->option('host').':'.$this->rpcPort(),
8484
'-o', 'http.pool.supervisor.exec_ttl='.$this->maxExecutionTime(),
85-
'-o', 'http.static.dir=public',
85+
'-o', 'http.static.dir='.base_path('public'),
8686
'-o', 'http.middleware='.config('octane.roadrunner.http_middleware', 'static'),
8787
'-o', 'logs.mode=production',
8888
'-o', app()->environment('local') ? 'logs.level=debug' : 'logs.level=warning',

0 commit comments

Comments
 (0)