Hub 2.8.0: an install's .env on its page, changed with a restart
- Settings (.env) panel on an Events or Accounts install: reads the .env through an env-read job (addresses first; secrets only as set or not), and changes plain values with an env-set job (restart, or rebuild for the frontend's file; the server puts the file back if the site doesn't start). After a change the file is read again. One change per install at a time. - Contracts 1.12.0 vendored (env jobs need agent 1.3.0). - env-read / env-set in the Jobs type filter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@ const FILTERS = [
|
||||
{ key: "cancelled", label: "Cancelled" },
|
||||
];
|
||||
|
||||
const TYPES = ["", "install", "add-product", "deploy", "adopt", "adopt-undo", "export", "uninstall", "purge", "seed-demo", "restart", "status", "check-ports", "update-agent"];
|
||||
const TYPES = ["", "install", "add-product", "deploy", "adopt", "adopt-undo", "export", "uninstall", "purge", "seed-demo", "env-read", "env-set", "restart", "status", "check-ports", "update-agent"];
|
||||
const PRODUCTS = [{ key: "", label: "Every product" }, { key: "events", label: "Cross Events" }, { key: "accounts", label: "Accounts" }];
|
||||
|
||||
/** Every job sent to a server's agent, newest first, a page at a time (§11: the full report is on each job). */
|
||||
|
||||
@@ -10,6 +10,7 @@ import { PRODUCT_NAMES } from "@/lib/products";
|
||||
import type { Release } from "@/lib/types";
|
||||
import { Loading, Message, PageTitle, Pager } from "@/components/ui";
|
||||
import { ServersNav, StatusPill, toInput, fromInput, type Deployment, type Job, type ServerSummary } from "@/components/servers";
|
||||
import { EnvPanel } from "@/components/EnvPanel";
|
||||
|
||||
type Msg = { type: "ok" | "err"; text: string } | null;
|
||||
type Detail = {
|
||||
@@ -164,6 +165,9 @@ export default function DeploymentPage() {
|
||||
</form>
|
||||
)}
|
||||
|
||||
{/* Hub 2.8.0: the install's .env, and changing it with a restart. */}
|
||||
{["events", "accounts"].includes(x.product) && ["live", "waiting_for_proxy"].includes(x.status) && <EnvPanel deploymentId={x.id} product={x.product} />}
|
||||
|
||||
{x.product === "events" && ["live", "waiting_for_proxy"].includes(x.status) && (
|
||||
<div className="card space-y-3">
|
||||
<h2 className="font-medium">Demo site</h2>
|
||||
|
||||
Reference in New Issue
Block a user