minor deploy fixes

ALLOWED_HOSTS, STATIC_ROOT, `exec` in run.sh
This commit is contained in:
Tomáš Mládek 2020-03-18 23:03:48 +01:00
parent c7711d27c4
commit f7de21af72
3 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
db.sqlite3
docs
static
dev
*.ttf

2
run.sh
View file

@ -1,3 +1,3 @@
#!/bin/bash
source .venv/bin/activate
gunicorn sdbs_pile.wsgi -b 127.0.0.1:8093
exec gunicorn sdbs_pile.wsgi -b 127.0.0.1:8093

View file

@ -24,7 +24,7 @@ SECRET_KEY = 'x5j0*70$a&l*n_@kn=j%4_@_+ismdl-o8!z0@vyjfl0tt+nlxx'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ["pile.sdbs.cz"]
# Application definition
@ -112,3 +112,4 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.0/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, "static")