mirror of
https://github.com/moghtech/komodo.git
synced 2026-10-28 16:00:38 +00:00
add message if fail to remove_dir_all after compose deploy
This commit is contained in:
@@ -173,7 +173,7 @@ pub async fn compose_up(
|
||||
res.logs.push(log);
|
||||
|
||||
if let Err(e) = fs::remove_dir_all(&root).await.with_context(|| {
|
||||
format!("failed to clean up files after deploy | path: {root:?}")
|
||||
format!("failed to clean up files after deploy | path: {root:?} | ensure all volumes are mounted outside the repo directory (preferably use absolute path for mounts)")
|
||||
}) {
|
||||
res
|
||||
.logs
|
||||
@@ -286,7 +286,9 @@ async fn write_stack(
|
||||
} else {
|
||||
// Ensure run directory exists
|
||||
fs::create_dir_all(&run_directory).await.with_context(|| {
|
||||
format!("failed to create stack run directory at {run_directory:?}")
|
||||
format!(
|
||||
"failed to create stack run directory at {run_directory:?}"
|
||||
)
|
||||
})?;
|
||||
let env_file_path = match write_environment_file(
|
||||
&stack.config.environment,
|
||||
|
||||
Reference in New Issue
Block a user