Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove build errors due to missing log directory #59

Merged
merged 1 commit into from Nov 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -28,6 +28,7 @@ RUN mkdir /logs
# Touch log files
RUN touch /code/logs/gunicorn.log
RUN touch /code/logs/access.log
RUN touch /code/logs/error.log

# change directory
WORKDIR /code
Expand Down
6 changes: 3 additions & 3 deletions docker-entrypoint.sh
@@ -1,14 +1,14 @@
#!/bin/bash

python3 manage.py makemigrations
python3 manage.py migrate

mkdir -p /code/logs/
touch /code/logs/gunicorn.log
touch /code/logs/access.log
touch /code/logs/error.log
tail -n 0 -f /code/logs/*.log &

python3 manage.py makemigrations
python3 manage.py migrate

echo 'Starting Gunicorn.'
exec gunicorn tagging_tracker.wsgi:application \
--name tagging_tracker \
Expand Down
2 changes: 2 additions & 0 deletions logs/.gitignore
@@ -0,0 +1,2 @@
*
!.gitignore
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this .gitignore here instead of the main project directory? You can just include the logs/*?