fix: освобождать порт 3000 перед запуском shop.service
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -35,6 +35,7 @@ fi
|
||||
|
||||
if [ -f /etc/systemd/system/shop.service ]; then
|
||||
systemctl daemon-reload
|
||||
bash "$SCRIPT_DIR/free-port-3000.sh" 3000 2>/dev/null || true
|
||||
systemctl restart shop
|
||||
sleep 2
|
||||
if curl -sf http://127.0.0.1:3000/health; then
|
||||
|
||||
Reference in New Issue
Block a user