From 9e23311159610656caefb0ee8a79a21c43ba6422 Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Mon, 30 Oct 2023 12:40:13 +0300 Subject: [PATCH] d --- sys/portal.conf | 6 +++--- sys/portal.service | 2 +- sys/portaldaphne.service | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/portal.conf b/sys/portal.conf index 2e137df79..bf65e2ea9 100644 --- a/sys/portal.conf +++ b/sys/portal.conf @@ -23,7 +23,7 @@ server { proxy_send_timeout 600; proxy_read_timeout 600; - root /var/www/PORTAL_COD2/front/dist/; + root /var/www/PORTAL_COD2/src/front/dist/; include /etc/nginx/mime.types; access_log /var/log/nginx/portal.access.log; error_log /var/log/nginx/portal.error.log; @@ -38,11 +38,11 @@ server { location /static { autoindex on; - alias /var/www/PORTAL_COD2/portal/static/; + alias /var/www/PORTAL_COD2/src/portal/static/; } location /media { - alias /var/www/PORTAL_COD2/portal/media; + alias /var/www/PORTAL_COD2/src/portal/media; } diff --git a/sys/portal.service b/sys/portal.service index 86f9be225..8c1368828 100644 --- a/sys/portal.service +++ b/sys/portal.service @@ -7,7 +7,7 @@ After=network.target [Service] User=root #WorkingDirectory=/var/www/proj/DQM/dqmback -WorkingDirectory=/var/www/PORTAL_COD2 +WorkingDirectory=/var/www/PORTAL_COD2/src/ # --timeout NNN - set timeout for gunicorn to NNN sec, default - 30sec # --access-logfile FILENAME - log all requests to file FILENAMEA # --error-logfile FILENAME - set error log file to FILENAME diff --git a/sys/portaldaphne.service b/sys/portaldaphne.service index 950bdfccc..1d94b7bb6 100644 --- a/sys/portaldaphne.service +++ b/sys/portaldaphne.service @@ -6,7 +6,7 @@ After=network.target Type=simple User=root #Group = nginx -WorkingDirectory=/var/www/PORTAL_COD2 +WorkingDirectory=/var/www/PORTAL_COD2/src ExecStart=/var/www/PORTAL_COD2/env/bin/python /var/www/PORTAL_COD2/env/bin/daphne -p 9967 portal.asgi:application Restart=on-failure