diff --git a/README.md b/README.md index 0b3b323..3ca63c7 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,9 @@ Dans le cas du VirtualEnv, python3 -m venv venv . venv/bin/activate pip install -r requirements.txt +./manage.py compilemessages +./manage.py makemigrations ./manage.py migrate -./manage.py collectstatic ./manage.py runserver ``` diff --git a/entrypoint.sh b/entrypoint.sh index 5538c65..456da97 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,6 +9,7 @@ python manage.py makemigrations sleep 2 python manage.py migrate +python manage.py collectstatic uwsgi --chdir="$(pwd)" \ --module=med.wsgi:application \ diff --git a/start_uwsgi.sh b/start_uwsgi.sh deleted file mode 100644 index fa88edd..0000000 --- a/start_uwsgi.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# This will launch the Django project as a UWSGI socket -# then Apache or NGINX will be able to use that socket - -PROJECT_PATH="$(pwd)" - -# Official Django configuration -uwsgi_python3 --chdir=$PROJECT_PATH \ - --module=med.wsgi:application \ - --env DJANGO_SETTINGS_MODULE=med.settings \ - --master --pidfile=$PROJECT_PATH/uwsgi.pid \ - --socket=$PROJECT_PATH/uwsgi.sock \ - --processes=5 \ - --chmod-socket=600 \ - --harakiri=20 \ - --max-requests=5000 \ - --vacuum \ - --daemonize=$PROJECT_PATH/uwsgi.log \ - --protocol=fastcgi