Skip to content

Commit ad8a1d0

Browse files
committed
fix localtesting
1 parent ce4cb1e commit ad8a1d0

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
55
ENV PYTHONDONTWRITEBYTECODE=1
66
ENV PYTHONUNBUFFERED=1
77

8-
# install system dependencies
9-
RUN apt-get update \
10-
&& apt-get -y install gcc postgresql \
11-
&& apt-get clean
12-
138
WORKDIR /app
149

1510
# Copy the project into the image

entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ cd /app/pythonkr_backend
77
export DJANGO_SETTINGS_MODULE="pythonkr_backend.settings.localtesting"
88
./manage.py migrate --no-input
99
./manage.py collectstatic --clear --noinput
10+
export DJANGO_SUPERUSER_PASSWORD=test
11+
./manage.py createsuperuser --username test --email [email protected] --noinput
1012
gunicorn --workers=2 \
1113
-b :8080 \
1214
--access-logfile - \

pythonkr_backend/pythonkr_backend/settings/localtesting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'HOST': 'db',
1010
'NAME': 'pk',
1111
'USER': 'pk',
12-
'PASSWD': 'pktesting',
12+
'PASSWORD': 'pktesting',
1313
}
1414
}
1515

0 commit comments

Comments
 (0)