Files
secondary-school-grade-archive/deploy/uninstall.sh
T
dekun e797d188ee Switch production deployment from Docker to PM2 on Ubuntu.
Add Express gateway, ecosystem config, and one-click install with native PostgreSQL, Node, and Python venv on port 23566.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 11:52:20 +08:00

12 lines
340 B
Bash

#!/usr/bin/env bash
set -euo pipefail
INSTALL_DIR="${INSTALL_DIR:-/opt/secondary-school-grade-archive}"
cd "${INSTALL_DIR}" || exit 1
pm2 delete grade-api grade-web 2>/dev/null || true
pm2 save --force
echo "PM2 服务已停止。PostgreSQL 数据与 ${INSTALL_DIR}/uploads 仍保留。"
echo "如需删除源码: rm -rf ${INSTALL_DIR}"