fôte again ! :)
This commit is contained in:
parent
63095670ef
commit
cbbd3fe6e6
|
|
@ -10,8 +10,8 @@ class Command(BaseCommand):
|
|||
|
||||
# create your public tenant
|
||||
tenant = Client(schema_name='public',
|
||||
name='Schemas Inc.',
|
||||
paid_until='2016-12-05',
|
||||
name='TiBillet Coop.',
|
||||
paid_until='2242-12-05',
|
||||
on_trial=False)
|
||||
tenant.save()
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -16,7 +16,7 @@ server {
|
|||
|
||||
location / {
|
||||
# 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 Host $host;
|
||||
proxy_redirect off;
|
||||
|
|
|
|||
Loading…
Reference in New Issue