{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/steps/nginx.step.ts",
          "name": "installEach",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
            "label": "core/steps/nginx.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
          }
        },
        {
          "file": "core/steps/nginx.step.ts",
          "name": "pushConfigs",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
            "label": "core/steps/nginx.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
          }
        },
        {
          "file": "core/steps/nginx.step.ts",
          "name": "pushConfigs",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
            "label": "core/steps/nginx.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
          }
        },
        {
          "file": "core/steps/recovery.step.ts",
          "name": "restoreEach",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
            "label": "core/steps/recovery.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 91,
      "name": "installConfig",
      "signature": "export const installConfig = async function installConfig("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "runtime/entrypoints/deployment.entrypoint.ts",
          "name": "release",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-runtime-entrypoints-deployment-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/deploy/runtime/entrypoints/deployment.entrypoint.ts",
            "label": "runtime/entrypoints/deployment.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/deploy/runtime/entrypoints/deployment.entrypoint.ts.md",
            "ref": "anatomy:file-deploy-runtime-entrypoints-deployment-entrypoint-ts"
          }
        },
        {
          "file": "runtime/entrypoints/nginx.entrypoint.ts",
          "name": "push",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-runtime-entrypoints-nginx-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/deploy/runtime/entrypoints/nginx.entrypoint.ts",
            "label": "runtime/entrypoints/nginx.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/deploy/runtime/entrypoints/nginx.entrypoint.ts.md",
            "ref": "anatomy:file-deploy-runtime-entrypoints-nginx-entrypoint-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 155,
      "name": "verifyNginx",
      "signature": "export const verifyNginx = async function verifyNginx(shell: Shell, journal: Journal): Promise<void> {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/steps/nginx.step.ts",
          "name": "installConfig",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
            "label": "core/steps/nginx.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
          }
        },
        {
          "file": "core/steps/nginx.step.ts",
          "name": "installConfig",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
            "label": "core/steps/nginx.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
          }
        },
        {
          "file": "core/steps/nginx.step.ts",
          "name": "pushScripts",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
            "label": "core/steps/nginx.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/pipelines/setup.pipeline.ts",
          "name": "pushSite",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-pipelines-setup-pipeline-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/pipelines/setup.pipeline.ts",
            "label": "core/pipelines/setup.pipeline.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/pipelines/setup.pipeline.ts.md",
            "ref": "anatomy:file-deploy-core-pipelines-setup-pipeline-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 138,
      "name": "pushConfigs",
      "signature": "export const pushConfigs = async function pushConfigs(shell: Shell, journal: Journal): Promise<void> {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/steps/nginx.step.ts",
          "name": "installConfig",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
            "label": "core/steps/nginx.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/steps/nginx.step.ts",
          "name": "pushScripts",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
            "label": "core/steps/nginx.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 106,
      "name": "installEach",
      "signature": "const installEach = async function installEach("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/steps/nginx.step.ts",
          "name": "installEach",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
            "label": "core/steps/nginx.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/steps/nginx.step.ts",
          "name": "pushConfigs",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/nginx.step.ts",
            "label": "core/steps/nginx.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-nginx-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 119,
      "name": "pushScripts",
      "signature": "const pushScripts = async function pushScripts(shell: Shell, journal: Journal): Promise<void> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "nginxBackups",
      "signature": "const nginxBackups = function nginxBackups(): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "directory",
      "signature": "const directory = absolutePath(\"app.backups\");"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "localSiteConfig",
      "signature": "export const localSiteConfig = function localSiteConfig(): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "pullConfig",
      "signature": "export const pullConfig = async function pullConfig(shell: Shell, journal: Journal): Promise<string> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 80,
      "name": "pullEverything",
      "signature": "export const pullEverything = async function pullEverything(shell: Shell, journal: Journal): Promise<string> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 111,
      "name": "rest]",
      "signature": "const [first, ...rest] = pairs;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 120,
      "name": "scripts",
      "signature": "const scripts = absolutePath(\"app.nginxScripts\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 124,
      "name": "names",
      "signature": "const names = readdirSync(scripts).filter((name) => statSync(join(scripts, name)).isFile());"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 125,
      "name": "staged",
      "signature": "const staged = mkdtempSync(join(tmpdir(), SCRIPT_STAGING_PREFIX));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 126,
      "name": "pairs",
      "signature": "const pairs = names.map((name): readonly [string, string] => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 127,
      "name": "target",
      "signature": "const target = scriptNameOf(name);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 128,
      "name": "output",
      "signature": "const output = join(staged, target);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 129,
      "name": "source",
      "signature": "const source = readFileSync(join(scripts, name), \"utf8\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 140,
      "name": "local",
      "signature": "const local = absolutePath(\"app.nginx\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 144,
      "name": "main",
      "signature": "const main = absolutePath(\"app.nginxMain\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 149,
      "name": "site",
      "signature": "const site = localSiteConfig();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 157,
      "name": "test",
      "signature": "const test = await shell.run(TEST_COMMAND);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 163,
      "name": "reload",
      "signature": "const reload = await shell.run(RELOAD_COMMAND);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 169,
      "name": "status",
      "signature": "const status = await shell.run(STATUS_COMMAND);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-nginx-step-ts",
  "language": "typescript",
  "layer": "application",
  "name": "nginx.step.ts",
  "path": "core/steps/nginx.step.ts",
  "ref": "anatomy:file-deploy-core-steps-nginx-step-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-steps",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-steps",
          "label": "core/steps",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-steps.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-steps"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-pipelines-setup-pipeline-ts",
          "json": "https://banes-lab.com/json/source/deploy/core/pipelines/setup.pipeline.ts",
          "label": "core/pipelines/setup.pipeline.ts",
          "markdown": "https://banes-lab.com/source/deploy/core/pipelines/setup.pipeline.ts.md",
          "ref": "anatomy:file-deploy-core-pipelines-setup-pipeline-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
          "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
          "label": "core/steps/recovery.step.ts",
          "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
          "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-runtime-entrypoints-deployment-entrypoint-ts",
          "json": "https://banes-lab.com/json/source/deploy/runtime/entrypoints/deployment.entrypoint.ts",
          "label": "runtime/entrypoints/deployment.entrypoint.ts",
          "markdown": "https://banes-lab.com/source/deploy/runtime/entrypoints/deployment.entrypoint.ts.md",
          "ref": "anatomy:file-deploy-runtime-entrypoints-deployment-entrypoint-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-runtime-entrypoints-nginx-entrypoint-ts",
          "json": "https://banes-lab.com/json/source/deploy/runtime/entrypoints/nginx.entrypoint.ts",
          "label": "runtime/entrypoints/nginx.entrypoint.ts",
          "markdown": "https://banes-lab.com/source/deploy/runtime/entrypoints/nginx.entrypoint.ts.md",
          "ref": "anatomy:file-deploy-runtime-entrypoints-nginx-entrypoint-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-pipelines",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-pipelines",
          "label": "core/pipelines",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-pipelines.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-pipelines"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-steps",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-steps",
          "label": "core/steps",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-steps.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-steps"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-runtime-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-runtime-entrypoints",
          "label": "runtime/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-runtime-entrypoints.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-runtime-entrypoints"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "step",
    "subject": "nginx",
    "variant": null
  },
  "stats": {
    "bytes": 5715,
    "callable": 9,
    "definitions": 24,
    "edges": 5,
    "exported": 13,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "relay": 3,
      "isolated": 19
    },
    "lines": {
      "blank": 9,
      "code": 165,
      "total": 174
    }
  },
  "summary": "165 lines of code and 24 definitions.",
  "text": "https://banes-lab.com/source/deploy/core/steps/nginx.step.ts.txt",
  "tree": "deploy",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-probe-step-ts",
      "json": "https://banes-lab.com/json/source/deploy/core/steps/probe.step.ts",
      "label": "core/steps/probe.step.ts",
      "markdown": "https://banes-lab.com/source/deploy/core/steps/probe.step.ts.md",
      "ref": "anatomy:file-deploy-core-steps-probe-step-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-certificate-step-ts",
      "json": "https://banes-lab.com/json/source/deploy/core/steps/certificate.step.ts",
      "label": "core/steps/certificate.step.ts",
      "markdown": "https://banes-lab.com/source/deploy/core/steps/certificate.step.ts.md",
      "ref": "anatomy:file-deploy-core-steps-certificate-step-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/deploy/core/steps",
    "label": "core/steps",
    "markdown": "https://banes-lab.com/api/source/deploy/core/steps.md",
    "ref": "api:source/deploy/core/steps"
  }
}
