remove nextcloud and prepare for prod
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m48s
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m48s
This commit is contained in:
@@ -19,6 +19,6 @@ RUN python -m venv venv \
|
||||
EXPOSE 8080
|
||||
|
||||
#CMD ["python", "manage.py", "runserver", "0.0.0.0:8080"]
|
||||
CMD ["sh", "-c", "source venv/bin/activate && python manage.py runserver 0.0.0.0:8080"]
|
||||
CMD ["sh", "-c", "source venv/bin/activate && python manage.py collectstatic && python manage.py runserver 0.0.0.0:8080"]
|
||||
#CMD ["./startup.sh"]
|
||||
|
||||
|
||||
@@ -89,8 +89,6 @@ REST_FRAMEWORK = {
|
||||
|
||||
LANGUAGE_CODE = 'fr-CH'
|
||||
|
||||
if not cfg_dev_mode:
|
||||
INSTALLED_APPS.append('nextcloud.apps.NextcloudConfig')
|
||||
|
||||
|
||||
MEDIA_URL = '/media/'
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
from pathlib import Path
|
||||
import os
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
cfg_dev_mode = True
|
||||
cfg_dev_mode = False
|
||||
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
#SECRET_KEY = 'django-prod-j4jd&+4j^t_=@zr(#q@n!8e*58vkql6&_6w-t14ju8pw%ei%^s'
|
||||
SECRET_KEY = 'django-insecure-j4jd&+4j^t_=@zr(#q@n!8e*58vkql6&_6w-t14ju8pw%ei%^s'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user