From 0c3e81feb14749c3d3d0635caa9208c3a35bec4b Mon Sep 17 00:00:00 2001 From: Vasia Zozulia Date: Mon, 8 Jun 2020 16:17:23 +0300 Subject: [PATCH 1/2] Fix runserver --- web_school/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_school/Dockerfile b/web_school/Dockerfile index ceaf4f2..a324f89 100644 --- a/web_school/Dockerfile +++ b/web_school/Dockerfile @@ -8,4 +8,4 @@ RUN mkdir /webschool_backend WORKDIR /webschool_backend COPY . /webschool_backend/ RUN pip install -r req.txt -RUN python manage.py runserver 0.0.0.0:8000 +CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] From 2e8aa5c3443eaf1dbd933dd81bdb6d4763db55ab Mon Sep 17 00:00:00 2001 From: Vasia Zozulia Date: Mon, 8 Jun 2020 16:30:20 +0300 Subject: [PATCH 2/2] Add a new server IP (CI/CD) --- web_school/web_school/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_school/web_school/settings.py b/web_school/web_school/settings.py index dca94b3..87d5e3b 100644 --- a/web_school/web_school/settings.py +++ b/web_school/web_school/settings.py @@ -26,7 +26,7 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = ["194.44.93.225","127.0.0.1","localhost"] +ALLOWED_HOSTS = ["65.52.67.131","194.44.93.225","127.0.0.1","localhost"] # Application definition