Removed the demo business as its easier to just provision one manually.
This commit is contained in:
6 files changed
+32
-84
No files matched your search
@@ -1,15 +1,16 @@
|
||||
/**
|
||||
* Generates the exact same shape as stacks/demo-business/compose.yaml
|
||||
* and stacks/marios/compose.yaml (the two hand-written example stacks) —
|
||||
* keep these in sync if that shape changes.
|
||||
* The canonical definition of a business stack's compose.yaml shape —
|
||||
* there's no separate hand-written example kept in the repo to stay in
|
||||
* sync with; this generator is the single source of truth. See
|
||||
* stacks/infra/compose.yaml's own header for the by-hand equivalent
|
||||
* steps (creating the database, .env, Caddy site) this replaces.
|
||||
*/
|
||||
export function generateComposeYaml(slug: string): string {
|
||||
const containerName = `next-chair-${slug}`;
|
||||
const volumeName = `next-chair-media-${slug}`;
|
||||
return `name: ${containerName}
|
||||
|
||||
# Generated by the management UI — see stacks/demo-business/compose.yaml
|
||||
# for the hand-written original this mirrors.
|
||||
# Generated by the management UI.
|
||||
|
||||
services:
|
||||
${containerName}:
|
||||
|
||||
Reference in new issue
Block a user