{"record":{"id":"64a78cdc9a908ba5","repo":"nikivdev/code","slug":"flow-toml-not-found-run-from-your-repo-root","errorCode":null,"errorMessage":"flow.toml not found. Run from your repo root.","messagePattern":"flow\\.toml not found\\. Run from your repo root\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/deploy.rs","lineNumber":847,"sourceCode":"        return tasks::run(TaskRunOpts {\n            config: flow_path,\n            delegate_to_hub: false,\n            hub_host: std::net::IpAddr::from([127, 0, 0, 1]),\n            hub_port: 9050,\n            name: \"deploy\".to_string(),\n            args: Vec::new(),\n        });\n    }\n\n    bail!(\"No deploy task found. Add 'deploy-web' or 'deploy' to flow.toml.\");\n}\n\nfn resolve_deploy_root(\n    project_root: &Path,\n    config: Option<&Config>,\n) -> Result<(PathBuf, PathBuf, Config)> {\n    let Some(flow_path) = find_flow_toml_from(project_root) else {\n        bail!(\"flow.toml not found. Run from your repo root.\");\n    };\n\n    let root = flow_path.parent().unwrap_or(project_root).to_path_buf();\n    let cfg = if root == project_root {\n        match config {\n            Some(existing) => existing.clone(),\n            None => crate::config::load(&flow_path)?,\n        }\n    } else {\n        crate::config::load(&flow_path)?\n    };\n\n    Ok((root, flow_path, cfg))\n}\n\nfn find_flow_toml_from(start: &Path) -> Option<PathBuf> {\n    let mut current = start.to_path_buf();\n    loop {","sourceCodeStart":829,"sourceCodeEnd":865,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/deploy.rs#L829-L865","documentation":"Error \"flow.toml not found. Run from your repo root.\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/deploy.rs:847 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"}