diff --git a/apps/truisms/20260130-000000/index.ts b/apps/truisms/20260130-000000/index.ts index 87794a5..1a85774 100644 --- a/apps/truisms/20260130-000000/index.ts +++ b/apps/truisms/20260130-000000/index.ts @@ -46,6 +46,8 @@ app.get("/", (c) => { app.get("/txt", c => c.text(truism())) +app.get("/ok", c => c.text("ok")) + export default { port: process.env.PORT || 3000, fetch: app.fetch, diff --git a/src/cli/commands/manage.ts b/src/cli/commands/manage.ts index ff41fb6..6a07ec9 100644 --- a/src/cli/commands/manage.ts +++ b/src/cli/commands/manage.ts @@ -51,6 +51,9 @@ export async function infoApp(arg?: string) { console.log(` Port: ${app.port}`) console.log(` URL: ${makeAppUrl(app.port)}`) } + if (app.pid) { + console.log(` PID: ${app.pid}`) + } if (app.started) { const uptime = Date.now() - app.started const seconds = Math.floor(uptime / 1000) % 60 diff --git a/src/client/components/AppDetail.tsx b/src/client/components/AppDetail.tsx index 7611833..a9be58a 100644 --- a/src/client/components/AppDetail.tsx +++ b/src/client/components/AppDetail.tsx @@ -89,6 +89,14 @@ export function AppDetail({ app, render }: { app: App, render: () => void }) { )} + {app.state === 'running' && app.pid && ( + + PID + + {app.pid} + + + )} {app.started && ( Started