cli run will prefer data file now, improved console coloring

This commit is contained in:
dswbx
2025-02-18 10:11:59 +01:00
parent bd362607ae
commit e12ed1e4b3
5 changed files with 63 additions and 12 deletions

View File

@@ -32,7 +32,7 @@ export async function attachServeStatic(app: any, platform: Platform) {
export async function startServer(server: Platform, app: any, options: { port: number }) {
const port = options.port;
console.log(`(using ${server} serve)`);
console.log(`Using ${server} serve`);
switch (server) {
case "node": {
@@ -54,7 +54,7 @@ export async function startServer(server: Platform, app: any, options: { port: n
}
const url = `http://localhost:${port}`;
console.log(`Server listening on ${url}`);
console.info("Server listening on", url);
await open(url);
}