From 455f06f90d8e16abf85bf6f6e0d791ab0e2775c4 Mon Sep 17 00:00:00 2001 From: Abdullah Adeel Date: Thu, 27 Jan 2022 00:45:23 +0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20fixed=20db=20user=20check=20in?= =?UTF-8?q?=20=20`entrypoint`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../compose/production/django/entrypoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/compose/production/django/entrypoint b/{{cookiecutter.project_slug}}/compose/production/django/entrypoint index 109fcfdcc..52f535609 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/entrypoint +++ b/{{cookiecutter.project_slug}}/compose/production/django/entrypoint @@ -19,7 +19,7 @@ export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES {%- endif %} {%- if cookiecutter.database_engine == 'mysql' %} if [ -z "${MYSQL_USER}" ]; then - base_mysql_image_default_user='mysql' + base_mysql_image_default_user='root' export MYSQL_USER="${base_mysql_image_default_user}" fi export DATABASE_URL="mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE}"