Added gunicorn and favicon
This commit is contained in:
parent
ad870c4a73
commit
4f55017b6f
18
README.md
18
README.md
@ -7,7 +7,7 @@ Composant satellite de ScoDoc pour l'auto-inscription des étudiants
|
|||||||
### Paquets Debian
|
### Paquets Debian
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
apt-get install postfix cracklib-runtime libcrack2-dev nginx postgresqllibpq-dev
|
apt-get install cracklib-runtime libcrack2-dev nginx postgresql libpq-dev python3.11-venv
|
||||||
```
|
```
|
||||||
|
|
||||||
### Installation de AutoSco
|
### Installation de AutoSco
|
||||||
@ -49,10 +49,24 @@ SCODOC_LOGIN="autosco"
|
|||||||
SCODOC_PASSWORD="xxx" # le mot de passe saisi ci-dessus
|
SCODOC_PASSWORD="xxx" # le mot de passe saisi ci-dessus
|
||||||
```
|
```
|
||||||
|
|
||||||
## Lancement manuel de l'application
|
## Pour les développeuses
|
||||||
|
|
||||||
|
### Lancement manuel de l'application
|
||||||
|
|
||||||
En mode debug (*ne pas utiliser sur un serveur public !**):
|
En mode debug (*ne pas utiliser sur un serveur public !**):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
flask run -p 5001 --host 0.0.0.0 --debug
|
flask run -p 5001 --host 0.0.0.0 --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Sous gunicorn:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/opt/autosco/venv/bin/gunicorn -b localhost:8001 -w 4 --timeout 600 autosco:app
|
||||||
|
```
|
||||||
|
|
||||||
|
### Génération du fichier de dépendances python
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip freeze > requirements.txt
|
||||||
|
```
|
BIN
app/static/icons/favicon.ico
Normal file
BIN
app/static/icons/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
@ -3,10 +3,12 @@ certifi==2024.8.30
|
|||||||
charset-normalizer==3.3.2
|
charset-normalizer==3.3.2
|
||||||
click==8.1.7
|
click==8.1.7
|
||||||
Flask==3.0.3
|
Flask==3.0.3
|
||||||
|
gunicorn==23.0.0
|
||||||
idna==3.8
|
idna==3.8
|
||||||
itsdangerous==2.2.0
|
itsdangerous==2.2.0
|
||||||
Jinja2==3.1.4
|
Jinja2==3.1.4
|
||||||
MarkupSafe==2.1.5
|
MarkupSafe==2.1.5
|
||||||
|
packaging==24.2
|
||||||
python-dotenv==1.0.1
|
python-dotenv==1.0.1
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
urllib3==2.2.2
|
urllib3==2.2.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user