fôte again ! :)

This commit is contained in:
Jonas 12t 2021-10-05 13:56:00 +04:00
parent 63095670ef
commit cbbd3fe6e6
3 changed files with 21 additions and 3 deletions

View File

@ -10,8 +10,8 @@ class Command(BaseCommand):
# create your public tenant # create your public tenant
tenant = Client(schema_name='public', tenant = Client(schema_name='public',
name='Schemas Inc.', name='TiBillet Coop.',
paid_until='2016-12-05', paid_until='2242-12-05',
on_trial=False) on_trial=False)
tenant.save() tenant.save()

View File

@ -0,0 +1,18 @@
#mkdir /root/.ssh
#touch /root/.ssh/known_hosts
#ssh-keyscan aaa.3peaks.re >> /root/.ssh/known_hosts
#crontab /DjangoFiles/cron/cron
#service cron start
mkdir -p /DjangoFiles/www
touch /DjangoFiles/www/nginxAccess.log
touch /DjangoFiles/www/nginxError.log
touch /DjangoFiles/www/gunicorn.logs
cd /DjangoFiles
python manage.py collectstatic --noinput
gunicorn TiBillet.wsgi --log-level=debug --access-logfile /DjangoFiles/www/gunicorn.logs --log-file /DjangoFiles/www/gunicorn.logs --error-logfile /DjangoFiles/www/gunicorn.logs --log-level debug --capture-output --reload -w 5 -b 0.0.0.0:8000
#sleep 2400h

View File

@ -16,7 +16,7 @@ server {
location / { location / {
# everything is passed to Gunicorn # everything is passed to Gunicorn
proxy_pass http://billeterie_django:8000; proxy_pass http://billetterie_django:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_redirect off; proxy_redirect off;