Enhance deployment logging in cmd_deploy function for better error tracking
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
parent
902bd7ee73
commit
dbec256b36
1 changed files with 9 additions and 1 deletions
|
|
@ -299,10 +299,18 @@ cmd_deploy() {
|
|||
validate_name "${name}"
|
||||
load_app "${name}"
|
||||
|
||||
echo "Starting deployment for app '${name}'" | systemd-cat -t panelctl -p info
|
||||
|
||||
cmd_render_route "${name}"
|
||||
run_compose -f "${APP_COMPOSE_FILE}" up -d || fail "compose up failed"
|
||||
|
||||
if ! run_compose -f "${APP_COMPOSE_FILE}" up -d 2>&1 | systemd-cat -t panelctl -p info; then
|
||||
echo "Deployment failed for app '${name}'" | systemd-cat -t panelctl -p err
|
||||
fail "compose up failed"
|
||||
fi
|
||||
|
||||
maybe_reload_caddy
|
||||
|
||||
echo "Successfully deployed app '${name}'" | systemd-cat -t panelctl -p info
|
||||
echo "deployed app '${name}'"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue