improve .env and docker-reset
This commit is contained in:
parent
e65dffe4d1
commit
37fb1ef726
10
.env.example
10
.env.example
|
@ -1,16 +1,16 @@
|
||||||
DOMAIN=localhost
|
DOMAIN=localhost
|
||||||
DEMO=false
|
DEMO=true
|
||||||
|
# note that with DEBUG=true, logs are more verbose (include tracebacks)
|
||||||
|
DEBUG=true
|
||||||
|
ALLOWED_HOSTS=localhost,localhost:8000,127.0.0.1,
|
||||||
|
|
||||||
STATIC_ROOT=/tmp/static/
|
STATIC_ROOT=/tmp/static/
|
||||||
MEDIA_ROOT=/tmp/media/
|
MEDIA_ROOT=/tmp/media/
|
||||||
ALLOWED_HOSTS=localhost,localhost:8000,127.0.0.1,
|
|
||||||
DOMAIN=localhost
|
|
||||||
DEBUG=True
|
|
||||||
EMAIL_HOST="mail.example.org"
|
EMAIL_HOST="mail.example.org"
|
||||||
EMAIL_HOST_USER="fillme_noreply"
|
EMAIL_HOST_USER="fillme_noreply"
|
||||||
EMAIL_HOST_PASSWORD="fillme_passwd"
|
EMAIL_HOST_PASSWORD="fillme_passwd"
|
||||||
EMAIL_PORT=587
|
EMAIL_PORT=587
|
||||||
EMAIL_USE_TLS=True
|
EMAIL_USE_TLS=true
|
||||||
EMAIL_BACKEND="django.core.mail.backends.smtp.EmailBackend"
|
EMAIL_BACKEND="django.core.mail.backends.smtp.EmailBackend"
|
||||||
EMAIL_FILE_PATH="/tmp/app-messages"
|
EMAIL_FILE_PATH="/tmp/app-messages"
|
||||||
ENABLE_EMAIL=false
|
ENABLE_EMAIL=false
|
||||||
|
|
|
@ -14,6 +14,11 @@ main() {
|
||||||
if [ "${DETACH:-}" ]; then
|
if [ "${DETACH:-}" ]; then
|
||||||
detach_arg='-d'
|
detach_arg='-d'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f .env ]; then
|
||||||
|
cp -v .env.example .env
|
||||||
|
echo "WARNING: .env was not there, .env.example was copied, this only happens once"
|
||||||
|
fi
|
||||||
# remove old database
|
# remove old database
|
||||||
sudo rm -vfr ./db/*
|
sudo rm -vfr ./db/*
|
||||||
docker compose down -v
|
docker compose down -v
|
||||||
|
|
Loading…
Reference in New Issue