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:
@@ -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