e797d188ee
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>
12 lines
340 B
Bash
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}"
|