Skip to content

Commit f47321c

Browse files
committed
fix(scripts): flush PM2 logs in clean-start to prevent stale error detection
1 parent e63e04b commit f47321c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

_scripts/clean-start.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ ALL_PORTS=(
4545
8091 # Admin panel
4646
9000 # Auth server
4747
9001 # Mail helper
48+
9999 # MailDev SMTP
4849
1111 # Profile server
4950
1112 # Profile static
5051
1113 # Profile worker
@@ -64,8 +65,9 @@ err() { echo -e "${RED}[clean]${NC} $*"; }
6465
# ------------------------------------------------------------------ #
6566
info "Stopping PM2 daemon..."
6667
if command -v pm2 &>/dev/null; then
68+
pm2 flush 2>/dev/null || true
6769
pm2 kill 2>/dev/null || true
68-
info "PM2 killed."
70+
info "PM2 logs flushed and daemon killed."
6971
else
7072
warn "pm2 not found, skipping."
7173
fi

0 commit comments

Comments
 (0)