{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a86c64fb-2ff5-43e0-ae17-85979332c164",
    "slug": "UGcNz8",
    "name": "wish-glance",
    "description": "A Clone of Glance with GitHub Gist API and single volume support",
    "url": "https://railway.com/deploy/UGcNz8",
    "upstream": {
      "image": "ghcr.io/wish-oss/wish-glance:latest"
    }
  },
  "services": [
    {
      "name": "Wish-Glance",
      "source": {
        "image": "ghcr.io/wish-oss/wish-glance:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/config",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "CONFIG_FILES",
      "service": "Wish-Glance",
      "description": "Use this as an alternative to GIST_ID when you want to provide direct URLs to your config files. Provide a comma-separated list of URLs; each file will be downloaded and stored in /app/config. Example: CONFIG_FILES=https://example.com/glance.yml,https://example.com/home.yml",
      "secret": false,
      "strategy": "default",
      "default": "https://raw.githubusercontent.com/glanceapp/glance/refs/heads/main/docs/glance.yml"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "UGcNz8"
      }
    },
    "cli": "railway deploy --template UGcNz8",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a86c64fb-2ff5-43e0-ae17-85979332c164",
            "serializedConfig": {
              "services": {
                "ee015f15-08eb-4a1a-9d9b-debd176c3f0a": {
                  "icon": "https://raw.githubusercontent.com/glanceapp/glance/refs/heads/main/internal/glance/static/app-icon.png",
                  "name": "Wish-Glance",
                  "deploy": {
                    "startCommand": "/bin/sh -c '[ -n \"$GIST_ID\" ] && API_URL=\"https://api.github.com/gists/$GIST_ID\" && FILES=$(curl -s $API_URL | jq -r \".files | to_entries[] | .value.raw_url\") || FILES=$(echo \"$CONFIG_FILES\" | tr \",\" \" \"); for FILE_URL in $FILES; do [ -n \"$FILE_URL\" ] && FILE_NAME=$(basename \"$FILE_URL\") && DEST_PATH=\"/app/config/$FILE_NAME\" && echo \"Downloading $FILE_NAME...\" && wget -q -O \"$DEST_PATH\" \"$FILE_URL\" && echo \"$FILE_NAME has been downloaded.\"; done; for VAR in CUSTOM_CSS FAVICON LOGO; do URL=$(eval echo \\$$VAR); [ -n \"$URL\" ] && FILE_NAME=$(basename \"$URL\") && DEST_PATH=\"/app/config/$FILE_NAME\" && echo \"Downloading $FILE_NAME...\" && wget -q -O \"$DEST_PATH\" \"$URL\" && echo \"$FILE_NAME has been downloaded.\"; done; echo \"Starting Glance...\" && ./glance --config /app/config/glance.yml'",
                    "healthcheckPath": "/api/healthz"
                  },
                  "source": {
                    "image": "ghcr.io/wish-oss/wish-glance:latest"
                  },
                  "variables": {
                    "LOGO": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "FAVICON": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": ""
                    },
                    "GIST_ID": {
                      "isOptional": true,
                      "description": "Set this to the ID of a public or private GitHub Gist that contains your text-based configuration files (such as .yml, .css, .js, etc.). The app will automatically download all files from the Gist and place them in /app/config.",
                      "defaultValue": ""
                    },
                    "CONFIG_FILES": {
                      "description": "Use this as an alternative to GIST_ID when you want to provide direct URLs to your config files. Provide a comma-separated list of URLs; each file will be downloaded and stored in /app/config. Example: CONFIG_FILES=https://example.com/glance.yml,https://example.com/home.yml",
                      "defaultValue": "https://raw.githubusercontent.com/glanceapp/glance/refs/heads/main/docs/glance.yml"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "ee015f15-08eb-4a1a-9d9b-debd176c3f0a": {
                      "mountPath": "/app/config"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Wish-Glance",
      "method": "GET",
      "path": "/api/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T00:39:04.383Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d1c131a1f240403981b7",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 54,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Wish-Glance"
  }
}
