1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-12-24 18:22:24 +00:00

Clarify Django commands

This commit is contained in:
Alexandre Iooss 2020-02-09 15:08:27 +01:00
parent 4d8d54e7de
commit 8a13f87a9e
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
3 changed files with 3 additions and 20 deletions

View File

@ -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
```

View File

@ -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 \

View File

@ -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