Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/playground/cli/src/run-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,11 @@ export async function runCLI(args: RunCLIArgs): Promise<RunCLIServer> {
logger.log(`Ready!`);
}

logger.log(`WordPress is running on ${serverUrl}`);
let message = `WordPress server is listening on ${serverUrl}`;
if (siteUrl !== serverUrl) {
message += ` (WP site URL: ${siteUrl})`;
}
logger.log(message);

if (args.experimentalDevtools && args.xdebug) {
const bridge = await startBridge({
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/cli/tests/test-running-unbuilt-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function test_playground_cli() {
echo "Running Playground CLI with Nx target: $TARGET $@"
timeout -s TERM 30s npx nx "$TARGET" playground-cli server --php=8.3 $@ 2>&1 > playground-cli-test-output &
PID=$!
CLI_STARTUP_STRING='WordPress is running on http://127.0.0.1:9400'
CLI_STARTUP_STRING='WordPress server is listening on http://127.0.0.1:9400'

# Sleep until Playground CLI starts or the process times out.
while ps -p "$PID" > /dev/null && ! grep -q "$CLI_STARTUP_STRING" playground-cli-test-output; do
Expand Down
Loading