docs: обновление сервера и миграция на PostgreSQL 17
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user