Skip to content

Commit 7edc8dc

Browse files
Added basic roadrunner configs for healthcheck and rr commands (#149)
* Added basic roadrunner configs for healthcheck * Update rr.yaml Co-authored-by: Taylor Otwell <[email protected]>
1 parent e263970 commit 7edc8dc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Commands/StartRoadRunnerCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function handle(ServerProcessInspector $inspector, ServerStateFile $serve
6666

6767
$server = tap(new Process(array_filter([
6868
$roadRunnerBinary,
69+
'-c', base_path('.rr.yaml'),
6970
'-o', 'http.address='.$this->option('host').':'.$this->option('port'),
7071
'-o', 'server.command='.(new PhpExecutableFinder)->find().' ./vendor/bin/roadrunner-worker',
7172
'-o', 'http.pool.num_workers='.$this->workerCount(),

src/Commands/stubs/rr.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rpc:
2+
listen: tcp://127.0.0.1:6001
3+
status:
4+
address: 127.0.0.1:2114

0 commit comments

Comments
 (0)