Skip to content

Commit ac1f6f7

Browse files
committed
Wait for webserver to start before handling requests
There should be a better way to do this, but I'm not sure what that way is right now.
1 parent d262eda commit ac1f6f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bootstrap

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ function start_webserver() {
1818
exit;
1919

2020
// return the child pid to parent
21-
default:
21+
default:
22+
// Wait for child server to start
23+
sleep(1);
2224
return $pid;
2325
}
2426
}

0 commit comments

Comments
 (0)