From 26d1f3ea094e3386ccaee8123b38afe1e110a430 Mon Sep 17 00:00:00 2001 From: Dana Lambert Date: Thu, 18 Nov 2021 11:21:18 +1300 Subject: [PATCH] Misc fixes - add remove orphans to start command - ignore keys directory - update default api url config to use /api --- .gitignore | 3 ++- backend/right_tree/settings.py | 3 +-- dev | 2 +- frontend/src/config.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 2eea525..d7c6a3e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.env \ No newline at end of file +.env +keys diff --git a/backend/right_tree/settings.py b/backend/right_tree/settings.py index 1a9b95f..4af7ea3 100644 --- a/backend/right_tree/settings.py +++ b/backend/right_tree/settings.py @@ -28,11 +28,10 @@ SECRET_KEY = os.getenv("DJANGO_SECRET_KEY", 'django-insecure-5t05qc2&14xuot4lgs# DEBUG = os.getenv('DJANGO_DEBUG_MODE', '') != 'False' # os.getenv("ALLOWED_HOSTS", "").split(","), -ALLOWED_HOSTS = (BASE_URL,) +ALLOWED_HOSTS = [BASE_URL, "localhost"] # Application definition - INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', diff --git a/dev b/dev index 93896e4..c5ae9ec 100755 --- a/dev +++ b/dev @@ -91,7 +91,7 @@ cmd_build() { } cmd_start() { - docker-compose up + docker-compose up --remove-orphans } cmd_create_staticfiles() { diff --git a/frontend/src/config.js b/frontend/src/config.js index 879120f..60399ab 100644 --- a/frontend/src/config.js +++ b/frontend/src/config.js @@ -1 +1 @@ -export const API_URL = "http://localhost:8000"; +export const API_URL = "http://localhost:8000/api";