Misc fixes
- add remove orphans to start command - ignore keys directory - update default api url config to use /api
This commit is contained in:
parent
6c72b457e0
commit
26d1f3ea09
4 changed files with 5 additions and 5 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
.env
|
||||
.env
|
||||
keys
|
||||
|
|
|
@ -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
2
dev
|
@ -91,7 +91,7 @@ cmd_build() {
|
|||
}
|
||||
|
||||
cmd_start() {
|
||||
docker-compose up
|
||||
docker-compose up --remove-orphans
|
||||
}
|
||||
|
||||
cmd_create_staticfiles() {
|
||||
|
|
|
@ -1 +1 @@
|
|||
export const API_URL = "http://localhost:8000";
|
||||
export const API_URL = "http://localhost:8000/api";
|
||||
|
|
Loading…
Reference in a new issue