Skip to content

Commit 8563867

Browse files
committed
wip
1 parent 9e0cffc commit 8563867

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

Dockerfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
FROM dunglas/frankenphp
22

33
RUN install-php-extensions \
4-
pdo_mysql \
5-
gd \
6-
intl \
7-
zip \
8-
opcache
9-
10-
COPY . /app
11-
12-
ENV FRANKENPHP_CONFIG="worker ./public/index.php"
4+
pdo_mysql \
5+
gd \
6+
intl \
7+
zip \
8+
opcache

packages/router/src/Commands/ServeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private function worker(string $host, int $port, int $httpsPort, string $publicD
4949
-e FRANKENPHP_CONFIG="worker %s" \
5050
-v $PWD:/app \
5151
-p %d:80 -p %d:443 -p %d:443/udp \
52-
dunglas/frankenphp
52+
tempest
5353
SH,
5454
path($publicDir, 'index.php')->toString(),
5555
$port,

public/index.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111

1212
$application = WorkerApplication::boot(__DIR__ . '/../');
1313

14-
$handler = static function () {
15-
// $application->run();
16-
echo 'hi';
14+
$handler = static function () use ($application) {
15+
$application->run();
1716
};
1817

1918
$maxRequests = (int)($_SERVER['MAX_REQUESTS'] ?? 0);

0 commit comments

Comments
 (0)