Update instructions for production deployment
This commit is contained in:
parent
293bc48eae
commit
60389ae1b0
4 changed files with 11 additions and 9 deletions
|
|
@ -72,9 +72,10 @@ production néccessite **une installation de Debian Bullseye**.
|
|||
On tire les dépendances le plus possible à partir des dépôts de Debian.
|
||||
|
||||
```
|
||||
$ sudo apt install nginx git gettext uwsgi python3-venv \
|
||||
$ sudo apt install nginx git gettext uwsgi uwsgi-plugin-python3 python3-venv \
|
||||
python3-certbot-nginx python3-django python3-django-crispy-forms \
|
||||
python3-django-taggit python3-pil python3-exifread
|
||||
python3-django-taggit python3-pil python3-exifread python3-django-allauth \
|
||||
python3-psycopg2
|
||||
```
|
||||
|
||||
2. **Clonage du dépot dans `/var/www/photos/photo21`**
|
||||
|
|
@ -96,7 +97,6 @@ production néccessite **une installation de Debian Bullseye**.
|
|||
(env)$ deactivate # sortir de l'environnement
|
||||
```
|
||||
|
||||
|
||||
4. **Configuration de UWSGI et NGINX.**
|
||||
|
||||
```bash
|
||||
|
|
@ -122,6 +122,7 @@ production néccessite **une installation de Debian Bullseye**.
|
|||
$ sudo -u www-data ./venv/bin/python ./manage.py collectstatic
|
||||
$ sudo -u www-data ./venv/bin/python ./manage.py check
|
||||
$ sudo -u www-data ./venv/bin/python ./manage.py migrate
|
||||
$ sudo ./venv/bin/python ./manage.py compilemessages
|
||||
```
|
||||
|
||||
7. *Enjoy \o/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue