INNER CODE UNIT · TypeScript

FORGEJO_DESTROY_ON_EXIT

PerryTS/perry · example-code/forgejo-deployment/main.ts:396

    FORGEJO_DESTROY_ON_EXIT=1 ./forgejo_app --down   # also drops volumes
─────────────────────────────────────────────────────────────
`);
  // Process exits 0 here; the docker daemon keeps the containers
  // running. `restart: unless-stopped` brings them back across host
  // reboots until an explicit `--down` (or `docker rm`) tears them.
}

async function cmdDown(c: StackConfig): Promise<void> {
  await preflightOrExit(c.httpPort, c.sshPort);

  const flag = envOr('FORGEJO_DESTROY_ON_EXIT', '');
  const destroy = flag === '1' || flag === 'true' || flag === 'yes';

  console.log(
    `📥 Tearing down Forgejo stack ` +
    (destroy ? '(volumes WILL be removed)' : '(volumes preserved)') +
    '...'

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…