Skip to content

Commit

Permalink
fix: RUN_CREATE_SUPER_USER
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Feb 19, 2024
1 parent c1c7845 commit 3aa7fa9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ RUN_COLLECT_STATIC=True
RUN_SEED_GROUPS=True
RUN_SEED_LOCATIONS=True
RUN_CREATE_SUPER_USER=True
RUN_CREATE_ADMIN=True

# database
# change DATABASE_ENGINE to "mysql" if you want to use MySQL or "psql" for PostgreSQL
Expand Down
6 changes: 3 additions & 3 deletions docker/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
gettext && \
gettext && \
python3 -m pip install --upgrade pip setuptools cython

# Python virtualenv paths
Expand All @@ -52,7 +52,7 @@ ENV LOG_LEVEL=INFO
ENV RUN_MIGRATIONS=True
ENV RUN_COMPILE_MESSAGES=True
ENV RUN_COLLECT_STATIC=True
ENV RUN_CREATE_ADMIN=True
ENV RUN_CREATE_SUPER_USER=True
ENV RUN_SEED_GROUPS=True
# ENV ENABLE_DJANGO_ADMIN=False

Expand All @@ -64,7 +64,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
nginx gcc xz-utils gettext
nginx gcc xz-utils gettext

# configure process manager
ARG S6_OVERLAY_VERSION=3.1.2.1
Expand Down
3 changes: 1 addition & 2 deletions docker/dockerfiles/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ ENV RUN_MIGRATIONS=True
ENV RUN_COMPILE_MESSAGES=True
ENV RUN_COLLECT_STATIC=False
ENV RUN_CREATE_SUPER_USER=True
ENV RUN_CREATE_ADMIN=True
ENV RUN_SEED_GROUPS=True

ENV IS_CONTAINERIZED=True
Expand All @@ -20,7 +19,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
nginx gcc xz-utils gettext python3 python3-pip python3-venv python3-dev git postgresql-client libpq-dev && \
nginx gcc xz-utils gettext python3 python3-pip python3-venv python3-dev git postgresql-client libpq-dev && \
apt-get clean


Expand Down
1 change: 0 additions & 1 deletion docker/s6-rc.d/init/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ is_enabled() {
return 1
}


cd "${BACKEND_ROOT:-/var/www/redirect/backend}" || exit 1

echo "Waiting for the database to be ready"
Expand Down

0 comments on commit 3aa7fa9

Please sign in to comment.