{
  "manifest_version": "1.0.0",
  "template": {
    "id": "251f30be-1084-492d-894f-104e31f06e21",
    "slug": "lightshell-server",
    "name": "lightshell-server",
    "description": "Release server for LightShell app auto-updates and signed binaries.",
    "url": "https://railway.com/deploy/lightshell-server",
    "upstream": {
      "repo_url": "https://github.com/lightshell-dev/lightshell-server"
    }
  },
  "services": [
    {
      "name": "lightshell-server",
      "source": {
        "repo": "https://github.com/lightshell-dev/lightshell-server"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "lightshell-server",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "PUBLIC_KEY",
      "service": "lightshell-server",
      "description": "Ed25519 public key for verifying release signatures. Generate one:   https://lightshell.dev/docs/guides/auto-updates/signing-keys/",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "STORAGE_PATH",
      "service": "lightshell-server",
      "description": "Provide a value for STORAGE_PATH.",
      "secret": false,
      "strategy": "default",
      "default": "/data/releases"
    },
    {
      "key": "STORAGE_BACKEND",
      "service": "lightshell-server",
      "description": "Provide a value for STORAGE_BACKEND.",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "LIGHTSHELL_API_KEY",
      "service": "lightshell-server",
      "description": "Provide a value for LIGHTSHELL_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "lightshell-server"
      }
    },
    "cli": "railway deploy --template lightshell-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "251f30be-1084-492d-894f-104e31f06e21",
            "serializedConfig": {
              "services": {
                "5369848e-bdc5-47cf-a005-26580a0cc78a": {
                  "name": "lightshell-server",
                  "source": {
                    "repo": "lightshell-dev/lightshell-server",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "3000"
                    },
                    "PUBLIC_KEY": {
                      "description": "Ed25519 public key for verifying release signatures. Generate one:   https://lightshell.dev/docs/guides/auto-updates/signing-keys/",
                      "defaultValue": "{{PUBLIC_KEY}}"
                    },
                    "STORAGE_PATH": {
                      "defaultValue": "/data/releases"
                    },
                    "STORAGE_BACKEND": {
                      "defaultValue": "local"
                    },
                    "LIGHTSHELL_API_KEY": {
                      "defaultValue": "{{LIGHTSHELL_API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T11:07:31.050Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_420e10e6de2a4f1aad01",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 119,
    "typical_build_seconds": 30,
    "typical_start_seconds": 10,
    "slowest_service": "lightshell-server"
  }
}
