change default aircox's dir in scripts

This commit is contained in:
bkfox 2022-08-16 14:02:10 +02:00
parent a4593dc0c5
commit dbc57cbcd1
3 changed files with 14 additions and 14 deletions

View File

@ -2,7 +2,7 @@
# aircox daily tasks: # aircox daily tasks:
# - diffusions monitoring for the current month # - diffusions monitoring for the current month
cd /srv/apps/aircox/ cd /srv/www/aircox/
scripts/launch_in_venv ./manage.py diffusions --update --clean scripts/launch_in_venv ./manage.py diffusions --update --clean
# - diffusions monitoring for the next month # - diffusions monitoring for the next month
scripts/launch_in_venv ./manage.py diffusions --update --next-month scripts/launch_in_venv ./manage.py diffusions --update --next-month

View File

@ -2,7 +2,7 @@
# #
# The binding is done to a Gunicorn's instance (cf. supervisor scripts), # The binding is done to a Gunicorn's instance (cf. supervisor scripts),
# on local port 8042 # and assumes that static files are in # on local port 8042 # and assumes that static files are in
# /srv/apps/aircox/static. # /srv/www/aircox/static.
# #
# You want to change the server_name and static location to suit your needs # You want to change the server_name and static location to suit your needs
# #
@ -21,7 +21,7 @@ server {
} }
location /static/ { location /static/ {
alias /srv/apps/aircox/static/ ; alias /srv/www/aircox/static/ ;
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 365d; expires 365d;
@ -29,7 +29,7 @@ server {
} }
location /media/ { location /media/ {
alias /srv/apps/aircox/static/media/ ; alias /srv/www/aircox/static/media/ ;
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 365d; expires 365d;

View File

@ -1,7 +1,7 @@
; Supervisor sample config file for Aircox. ; Supervisor sample config file for Aircox.
; ;
; It assumes that the instance is installed in the directory ; It assumes that the instance is installed in the directory
; "/srv/apps/aircox". It requires Gunicorn in order to run the ; "/srv/www/aircox". It requires Gunicorn in order to run the
; WSGI server. ; WSGI server.
; ;
; * aircox_server: WSGI server instance using Gunicorn for production; ; * aircox_server: WSGI server instance using Gunicorn for production;
@ -14,32 +14,32 @@
; ;
[program:aircox_server] [program:aircox_server]
command = /srv/apps/aircox/scripts/launch_in_venv gunicorn --bind 127.0.0.1:8042 instance.wsgi:application command = /srv/www/aircox/scripts/launch_in_venv gunicorn --bind 127.0.0.1:8042 instance.wsgi:application
directory = /srv/apps/aircox directory = /srv/www/aircox
user = aircox user = aircox
autostart = true autostart = true
autorestart = true autorestart = true
stdout_logfile = /srv/apps/aircox/logs/server.log stdout_logfile = /srv/www/aircox/logs/server.log
redirect_stderr = true redirect_stderr = true
environment=AIRCOX_DEBUG="False" environment=AIRCOX_DEBUG="False"
[program:aircox_sounds_monitor] [program:aircox_sounds_monitor]
command = /srv/apps/aircox/scripts/launch_in_venv ./manage.py sounds_monitor -qsm command = /srv/www/aircox/scripts/launch_in_venv ./manage.py sounds_monitor -qsm
directory = /srv/apps/aircox directory = /srv/www/aircox
user = aircox user = aircox
autostart = true autostart = true
autorestart = true autorestart = true
stdout_logfile = /srv/apps/aircox/logs/sounds_monitor.log stdout_logfile = /srv/www/aircox/logs/sounds_monitor.log
redirect_stderr = true redirect_stderr = true
environment=AIRCOX_DEBUG="False" environment=AIRCOX_DEBUG="False"
[program:aircox_streamer] [program:aircox_streamer]
command = /srv/apps/aircox/scripts/launch_in_venv ./manage.py streamer -crm command = /srv/www/aircox/scripts/launch_in_venv ./manage.py streamer -crm
directory = /srv/apps/aircox directory = /srv/www/aircox
user = aircox user = aircox
autostart = true autostart = true
autorestart = true autorestart = true
stdout_logfile = /srv/apps/aircox/logs/streamer.log stdout_logfile = /srv/www/aircox/logs/streamer.log
redirect_stderr = true redirect_stderr = true
environment=AIRCOX_DEBUG="False" environment=AIRCOX_DEBUG="False"