Misc fixes

-  add remove orphans to start command
- ignore keys directory
- update default api url config to use /api
This commit is contained in:
Dana Lambert 2021-11-18 11:21:18 +13:00
parent 6c72b457e0
commit 26d1f3ea09
4 changed files with 5 additions and 5 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
.env
.env
keys

View file

@ -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',

2
dev
View file

@ -91,7 +91,7 @@ cmd_build() {
}
cmd_start() {
docker-compose up
docker-compose up --remove-orphans
}
cmd_create_staticfiles() {

View file

@ -1 +1 @@
export const API_URL = "http://localhost:8000";
export const API_URL = "http://localhost:8000/api";