Skip to content

Commit 8ff5d46

Browse files
committed
Specify router script as handler
1 parent a4982cb commit 8ff5d46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bootstrap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ function start_webserver() {
1313

1414
case 0:
1515
// exec the command
16+
$HANDLER = getenv('_HANDLER');
1617
chdir('/var/task');
17-
exec('php -S localhost:8000');
18+
exec("php -S localhost:8000 '$HANDLER'");
1819
exit;
1920

2021
// return the child pid to parent

0 commit comments

Comments
 (0)