Skip to content

Commit 3133d6f

Browse files
committed
Improved error messages and patterns to get port
fedify-dev#479 (comment) fedify-dev#479 (comment)
1 parent 1ca7bae commit 3133d6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/cli/src/init/test/lookup.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function testApp(dir: string): Promise<boolean> {
8787
}!`;
8888
if (!result) {
8989
printMessage` Check out these files for more details:
90-
${join(dir, "out.txt")}
90+
${join(dir, "out.txt")} and
9191
${join(dir, "err.txt")}\n`;
9292
}
9393
printMessage`\n`;
@@ -204,9 +204,9 @@ function determinePort(
204204
/listening on.*:(\d+)/i,
205205
/server.*:(\d+)/i,
206206
/port\s*:?\s*(\d+)/i,
207-
/localhost:(\d+)/i,
208-
/0\.0\.0\.0:(\d+)/i,
209-
/127\.0\.0\.1:(\d+)/i,
207+
/https?:localhost:(\d+)/i,
208+
/https?:0\.0\.0\.0:(\d+)/i,
209+
/https?:127\.0\.0\.1:(\d+)/i,
210210
/https?:\/\/[^:]+:(\d+)/i,
211211
];
212212

0 commit comments

Comments
 (0)