mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 10:50:38 +09:00
Introduce bind presets for deployment setup
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
e1bf9d66a7
commit
2a84e53c1b
35 changed files with 915 additions and 176 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { existsSync, readFileSync } from "node:fs";
|
||||
import { resolvePaperclipConfigPath, resolvePaperclipEnvPath } from "./paths.js";
|
||||
import type { DeploymentExposure, DeploymentMode } from "@paperclipai/shared";
|
||||
import type { BindMode, DeploymentExposure, DeploymentMode } from "@paperclipai/shared";
|
||||
|
||||
import { parse as parseEnvFileContents } from "dotenv";
|
||||
|
||||
|
|
@ -18,6 +18,7 @@ type EmbeddedPostgresInfo = {
|
|||
};
|
||||
|
||||
type StartupBannerOptions = {
|
||||
bind: BindMode;
|
||||
host: string;
|
||||
deploymentMode: DeploymentMode;
|
||||
deploymentExposure: DeploymentExposure;
|
||||
|
|
@ -148,6 +149,7 @@ export function printStartupBanner(opts: StartupBannerOptions): void {
|
|||
color(" ───────────────────────────────────────────────────────", "blue"),
|
||||
row("Mode", `${dbMode} | ${uiMode}`),
|
||||
row("Deploy", `${opts.deploymentMode} (${opts.deploymentExposure})`),
|
||||
row("Bind", `${opts.bind} ${color(`(${opts.host})`, "dim")}`),
|
||||
row("Auth", opts.authReady ? color("ready", "green") : color("not-ready", "yellow")),
|
||||
row("Server", portValue),
|
||||
row("API", `${apiUrl} ${color(`(health: ${apiUrl}/health)`, "dim")}`),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue