{"record":{"id":"a3a372cbe05e7be6","repo":"nikivdev/code","slug":"railway-deployment-failed","errorCode":null,"errorMessage":"Railway deployment failed","messagePattern":"Railway deployment failed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/deploy.rs","lineNumber":1642,"sourceCode":"        let env_path = project_root.join(env_file);\n        if env_path.exists() {\n            println!(\"==> Setting environment variables...\");\n            set_railway_env(&env_path)?;\n        }\n    }\n\n    // Deploy\n    println!(\"==> Deploying to Railway...\");\n    let status = Command::new(\"railway\")\n        .args([\"up\", \"--detach\"])\n        .current_dir(project_root)\n        .stdin(Stdio::inherit())\n        .stdout(Stdio::inherit())\n        .stderr(Stdio::inherit())\n        .status()?;\n\n    if !status.success() {\n        bail!(\"Railway deployment failed\");\n    }\n\n    println!(\"\\n✓ Deployed to Railway!\");\n    Ok(())\n}\n\n/// Show deployment status.\nfn show_status(_project_root: &Path, config: Option<&Config>) -> Result<()> {\n    let deploy_config = load_deploy_config()?;\n\n    println!(\"Deployment Status\\n\");\n\n    // Host status\n    if let Some(conn) = &deploy_config.host {\n        println!(\"Host: {}@{}:{}\", conn.user, conn.host, conn.port);\n        if let Some(cfg) = config.and_then(|c| c.host.as_ref()) {\n            if let Some(service) = &cfg.service {\n                let output = ssh_capture(","sourceCodeStart":1624,"sourceCodeEnd":1660,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/deploy.rs#L1624-L1660","documentation":"Error \"Railway deployment failed\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/deploy.rs:1642 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}