From bce1990e2960cdb0d52892f781150eaa27bea55f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D1=80=D0=B8=D0=B9=20=D0=A7=D0=B5=D1=80=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Mon, 20 Apr 2026 14:13:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=80=D1=82=20=D0=BD=D0=B0=208001?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index 9340fe3..6a31574 100644 --- a/deploy.sh +++ b/deploy.sh @@ -113,14 +113,14 @@ check_required_files() { } setup_firewall() { - log_info "Открытие порта 8000..." + log_info "Открытие порта 8001..." if command -v ufw >/dev/null 2>&1 && systemctl is-active --quiet ufw; then - ufw allow 8000/tcp || log_warn "Не удалось открыть порт 8000 в ufw" + ufw allow 8001/tcp || log_warn "Не удалось открыть порт 8001 в ufw" fi if command -v firewall-cmd >/dev/null 2>&1 && systemctl is-active --quiet firewalld; then - firewall-cmd --permanent --add-port=8000/tcp || true + firewall-cmd --permanent --add-port=8001/tcp || true firewall-cmd --reload || true fi } @@ -151,7 +151,7 @@ User=root WorkingDirectory=$TARGET_DIR Environment="PATH=$TARGET_DIR/.venv/bin" EnvironmentFile=$TARGET_ENV -ExecStart=$TARGET_DIR/.venv/bin/uvicorn app:app --host 0.0.0.0 --port 8000 +ExecStart=$TARGET_DIR/.venv/bin/uvicorn app:app --host 0.0.0.0 --port 8001 Restart=always RestartSec=5