Production fixes

This commit is contained in:
Stephan Porada
2020-12-04 15:55:11 +01:00
parent 0ea86f3a35
commit 71ab6bc550
7 changed files with 19 additions and 11 deletions

View File

@ -18,8 +18,8 @@ RUN pip install -r requirements.txt
COPY . /usr/src/app/
# add wait for it
RUN git clone https://github.com/vishnubob/wait-for-it.git /wait-for-it
RUN chmod a+x /wait-for-it/wait-for-it.sh
RUN git clone https://github.com/vishnubob/wait-for-it.git
RUN chmod a+x wait-for-it/wait-for-it.sh
# add entry point
COPY ./django-entrypoint.sh django-entrypoint.sh

View File

@ -31,7 +31,7 @@ SESSION_COOKIE_SECURE = True
# CHANGE the hosts according to your settings.
ALLOWED_HOSTS = ["127.0.0.1", "localhost", "192.168.0.14", "bundesdata.sporada.eu"]
ALLOWED_HOSTS = ["127.0.0.1", "localhost", "0.0.0.0", "bundesdata.sporada.eu"]
# Application definition
@ -135,7 +135,7 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.1/howto/static-files/
STATIC_URL = '/staticfiles/'
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
# WATSON

View File

@ -2,4 +2,5 @@
python manage.py collectstatic --noinput
python manage.py makemigrations --noinput
python manage.py migrate --noinput
python manage.py runserver 0.0.0.0:8000
exec "$@"