Skip to content

Commit 2aca876

Browse files
committed
Launcher: try to use localhost with 3000 port
1 parent 25ad846 commit 2aca876

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/launchers/builtin.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function startServer(entrypoint: string): Promise<ChildProcess> {
4747
//
4848
server = spawn(
4949
'php',
50-
['-c', 'php.ini', '-S', '127.0.0.1:8000', '-t', docroot, router],
50+
['-c', 'php.ini', '-S', '0.0.0.0:3000', '-t', docroot, router],
5151
options,
5252
);
5353

@@ -67,7 +67,7 @@ async function startServer(entrypoint: string): Promise<ChildProcess> {
6767
console.error(`🐘 PHP Built-In Server process errored ${err}`);
6868
});
6969

70-
await whenPortOpens(8000, 500);
70+
await whenPortOpens(3000, 500);
7171

7272
process.on('exit', () => {
7373
server.kill();
@@ -83,8 +83,8 @@ async function query({ entrypoint, uri, path, headers, method, body }: PhpInput)
8383

8484
return new Promise(resolve => {
8585
const options = {
86-
hostname: '127.0.0.1',
87-
port: 8000,
86+
hostname: 'localhost',
87+
port: 3000,
8888
path,
8989
method,
9090
headers,

0 commit comments

Comments
 (0)