Skip to content

Commit

Permalink
Listen on 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuechner committed May 12, 2022
1 parent cbf6db4 commit 64856a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,6 @@ venv.bak/
# mypy
.mypy_cache/
/DDBmeme/.idea/
/DDBmeme/Pipfile
/DDBmeme/Pipfile.lock
/.idea/
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ COPY --chown=${RUN_USER}:${RUN_GROUP} DDBmeme/ /home/ddbmeme/
WORKDIR /home/ddbmeme
RUN mkdir .venv/ && \
pipenv install && \
pipenv run python manage.py migrate && \
apk del --no-network .build-deps && \
touch /run/supervisord.pid && chgrp -R ${RUN_GROUP} /run/supervisord.pid && chmod -R g=u /run/supervisord.pid;

Expand Down
2 changes: 1 addition & 1 deletion config/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ autorestart=false
priority=100

[program:ddbmeme]
command=pipenv run python3 manage.py runserver 127.0.0.1:8080
command=pipenv run python3 manage.py runserver 0.0.0.0:8080
directory=/home/ddbmeme
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
Expand Down

0 comments on commit 64856a7

Please sign in to comment.