attempting creation of testing mode.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
DJANGO_SETTINGS_MODULE=website.settings
|
||||
DJANGO_SECRET_KEY=CWHZCAZBNV57tDkwGHJwTUu3PCSnGG45
|
||||
DEBUG=TRUE
|
||||
ALLOWED_HOSTS=["test-vps.woutervermeer.com"]
|
||||
ALLOWED_HOSTS=localhost
|
||||
|
||||
# Database (PostgreSQL)
|
||||
POSTGRES_DB=app
|
||||
|
||||
3
Makefile
3
Makefile
@@ -5,3 +5,6 @@ prod:
|
||||
dev:
|
||||
docker compose down
|
||||
docker compose -f ./compose.yaml -f ./compose.dev.yaml up --build
|
||||
|
||||
test:
|
||||
docker compose -f ./compose.yaml -f ./compose.test.yaml up --build
|
||||
|
||||
9
compose.test.yaml
Normal file
9
compose.test.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
web:
|
||||
env_file: ".env.template"
|
||||
command: python -Wa manage.py test --noinput --parallel
|
||||
|
||||
db:
|
||||
env_file: ".env.template"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user