[damned-lies/develop] fix: test instance uses mysql
- From: Guillaume Bernard <gbernard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/develop] fix: test instance uses mysql
- Date: Thu, 6 Oct 2022 10:30:38 +0000 (UTC)
commit 97ec26459a72a22b9527296179066d43e959cd35
Author: Guillaume Bernard <associations guillaume-bernard fr>
Date: Thu Oct 6 12:30:33 2022 +0200
fix: test instance uses mysql
containers/production/configuration/entrypoint.sh.jinja2 | 2 --
containers/production/configuration/local_settings.py.jinja2 | 2 --
2 files changed, 4 deletions(-)
---
diff --git a/containers/production/configuration/entrypoint.sh.jinja2
b/containers/production/configuration/entrypoint.sh.jinja2
index 73fc2b27..048ec788 100755
--- a/containers/production/configuration/entrypoint.sh.jinja2
+++ b/containers/production/configuration/entrypoint.sh.jinja2
@@ -2,7 +2,6 @@
declare -r LOCAL_SETTINGS_FILE="{{ damned_lies_project_directory }}/damnedlies/local_settings.py"
-{% if kind == "production" %}
# Database configuration
sed -i "s/\$DB_NAME/${DB_NAME}/" "${LOCAL_SETTINGS_FILE}"
sed -i "s/\$DB_USER/${DB_USER}/" "${LOCAL_SETTINGS_FILE}"
@@ -12,7 +11,6 @@ sed -i "s/\$DB_PORT/${DB_PORT}/" "${LOCAL_SETTINGS_FILE}"
sed -i "s/\$SECRET_KEY/${SECRET_KEY}/" "${LOCAL_SETTINGS_FILE}"
sed -i "s/\$SENTRY_DSN/${SENTRY_DSN}/" "${LOCAL_SETTINGS_FILE}"
sed -i "s/\$GITLAB_TOKEN/${GITLAB_TOKEN}/" "${LOCAL_SETTINGS_FILE}"
-{% endif %}
# The domain under which the application is publicly available
sed -i "s/\$SITE_DOMAIN/${SITE_DOMAIN}/" "${LOCAL_SETTINGS_FILE}"
diff --git a/containers/production/configuration/local_settings.py.jinja2
b/containers/production/configuration/local_settings.py.jinja2
index 6748d546..d4e1e00a 100644
--- a/containers/production/configuration/local_settings.py.jinja2
+++ b/containers/production/configuration/local_settings.py.jinja2
@@ -12,7 +12,6 @@ ADMINS = (
MANAGERS = ADMINS
-{% if kind == "production" %}
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
@@ -27,7 +26,6 @@ DATABASES = {
},
}
}
-{% endif %}
{% if kind == "test" %}
DEBUG = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]