Update envs
This commit is contained in:
parent
bb756e9339
commit
b30c20a08e
5 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
export DEBUG=false
|
export DEBUG=false
|
||||||
export SECRET_KEY=changeme
|
export SECRET_KEY=changeme
|
||||||
export ALLOWED_HOSTS=localhost,127.0.0.1
|
export ALLOWED_HOSTS=localhost,127.0.0.1
|
||||||
|
export DATABASE_URL=sqlite:////db/db.sqlite3
|
||||||
|
|
|
@ -4,9 +4,7 @@ services:
|
||||||
shortener:
|
shortener:
|
||||||
image: rg.fr-par.scw.cloud/crocmagnon/shortener
|
image: rg.fr-par.scw.cloud/crocmagnon/shortener
|
||||||
build: .
|
build: .
|
||||||
env_file: shortener.env
|
env_file: envs/docker.env
|
||||||
environment:
|
|
||||||
DATABASE_URL: sqlite:////db/db.sqlite3
|
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
volumes:
|
volumes:
|
||||||
|
|
2
envs/docker.env
Normal file
2
envs/docker.env
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
DEBUG=true
|
||||||
|
DATABASE_URL=sqlite:////db/db.sqlite3
|
1
envs/local.env
Normal file
1
envs/local.env
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEBUG=true
|
|
@ -1,6 +1,5 @@
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from model_bakery import baker
|
|
||||||
|
|
||||||
from redirect.models import Redirect
|
from redirect.models import Redirect
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue