docs: обновление сервера и миграция на PostgreSQL 17

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shop
2026-05-17 09:34:03 +03:00
parent 7060b0566a
commit 20987ad793
2 changed files with 101 additions and 14 deletions
+12
View File
@@ -9,6 +9,18 @@ git pull
npm install --omit=dev
if [ -f .env ] && ! grep -q '^DATABASE_URL=' .env; then
echo "ВНИМАНИЕ: добавьте DATABASE_URL в .env (см. .env.example)"
exit 1
fi
if command -v pg_isready >/dev/null; then
pg_isready -h 127.0.0.1 -p 5432 >/dev/null || {
echo "PostgreSQL не отвечает. Запустите: systemctl start postgresql"
exit 1
}
fi
if systemctl is-active --quiet shop 2>/dev/null; then
systemctl restart shop
sleep 1