nikivdev/code · error
No deploy task found. Add 'deploy-web' or 'deploy' to flow.t
Error message
No deploy task found. Add 'deploy-web' or 'deploy' to flow.toml.
What it means
Error "No deploy task found. Add 'deploy-web' or 'deploy' to flow.toml." thrown in nikivdev/code.
Source
Thrown at src/deploy.rs:839
hub_port: 9050,
name: "deploy-web".to_string(),
args: Vec::new(),
});
}
if tasks::find_task(&cfg, "deploy").is_some() {
eprintln!("WARN deploy-web task not found; running deploy.");
return tasks::run(TaskRunOpts {
config: flow_path,
delegate_to_hub: false,
hub_host: std::net::IpAddr::from([127, 0, 0, 1]),
hub_port: 9050,
name: "deploy".to_string(),
args: Vec::new(),
});
}
bail!("No deploy task found. Add 'deploy-web' or 'deploy' to flow.toml.");
}
fn resolve_deploy_root(
project_root: &Path,
config: Option<&Config>,
) -> Result<(PathBuf, PathBuf, Config)> {
let Some(flow_path) = find_flow_toml_from(project_root) else {
bail!("flow.toml not found. Run from your repo root.");
};
let root = flow_path.parent().unwrap_or(project_root).to_path_buf();
let cfg = if root == project_root {
match config {
Some(existing) => existing.clone(),
None => crate::config::load(&flow_path)?,
}
} else {
crate::config::load(&flow_path)?View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/deploy.rs:839 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01).
Data as JSON: /api/errors/130e58572c0512c8.
Report an issue: GitHub.