Production fixes
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 "$@"
|
||||
|
Reference in New Issue
Block a user