Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elnappo committed Mar 17, 2019
1 parent beaa064 commit 92144d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN apt-get update && apt-get install --assume-yes --no-install-recommends pytho
&& rm -rf /var/lib/apt/lists/*

COPY . /code/
WORKDIR /code/project_novis
WORKDIR /code/

RUN python manage.py collectstatic --noinput

Expand Down
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ case "$1" in
gunicorn)
echo "Starting Django application via Gunicorn"
# Disable access log?
exec gunicorn -b :8000 --worker-class gevent --worker-connections 20 --timeout 10 --graceful-timeout 30 --access-logfile - wsgi
exec gunicorn -b :8000 --worker-class gevent --worker-connections 20 --timeout 10 --graceful-timeout 30 --access-logfile - project_novis.wsgi
;;
help)
show_help
Expand Down
2 changes: 1 addition & 1 deletion project_novis/manage.py → manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project_novis.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[pytest]
python_paths = project_novis/
;python_paths = project_novis/
DJANGO_SETTINGS_MODULE = project_novis.settings
# -- recommended but optional:
python_files = tests.py test_*.py *_tests.py
Expand Down

0 comments on commit 92144d6

Please sign in to comment.