From 4f55017b6ff24cf9e38615f1b025e97f527b4e12 Mon Sep 17 00:00:00 2001 From: Ilona Date: Tue, 7 Jan 2025 17:47:15 +0100 Subject: [PATCH] Added gunicorn and favicon --- README.md | 18 ++++++++++++++++-- app/static/icons/favicon.ico | Bin 0 -> 15406 bytes requirements.txt | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 app/static/icons/favicon.ico diff --git a/README.md b/README.md index f181b3f..63d2db9 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Composant satellite de ScoDoc pour l'auto-inscription des étudiants ### Paquets Debian ```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 @@ -49,10 +49,24 @@ SCODOC_LOGIN="autosco" 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 !**): ```bash 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 +``` \ No newline at end of file diff --git a/app/static/icons/favicon.ico b/app/static/icons/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..3b95a1544ae424f5ffc32ec20408a41edea34fcd GIT binary patch literal 15406 zcmeHuM{}E5vZW?we!!c>?0YrwmTxudSx%R)>Z&f+-LJZz>8>hyLnBK`q#V5g=&cM% zIf^1BdJ={pLBe|wg!dpRspI{DGbbFaPPtk^gq&$dOr=xML0(P8JqeKVCni0D{~__wvxw>D|q6Rhihi^aM7_;E3dAD2t&^TQ*% z=;7xEZUivEF_BKgKHG`4mJeX=cn_YrE+j(Ri2Kb*_&4B+L~zBF!^QO?>NfT;^CE$V zgJC=!*}>C+2$sAFOmFz`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yfi2 zeC~DnT6~@rzgKjZ_oUvF_&@CbU)2BhHXN+YWZk5nr))!IABZiYKYJnVV-i2_dWnAe zT!|~C|2ObFI)e%Ff*qzbx+pq|-ke6a$U1B3%?$6;a*r>mUL)x@lIIk4klvs0ZkG9m z_qs#zQ`Vn#*5SRN;-C7ne=W_vCDjka7?NI~x5E6BA&0U(`Un2rr|e&?AE|7^yWbJX z{*XQ$H{;(KNnw*X{`O85HWA*_?c^*(+{`ago{5JsiSo1j?uch5|8}&e?0=oaxh9qU zDzEi-$~j0U{;%k-`iU4rhkKgjTuG6`vW@%#ZtZ`_k-*ymL4 zDJ=Im9qM=DSro1GKq`Jn>wA)sm`j4A_i1UC8$}Ua)$7Xp@+{(-IQjp4pA_4p L{{O#!hX?*Ay7Tkb literal 0 HcmV?d00001 diff --git a/requirements.txt b/requirements.txt index 1a44c28..933237d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,10 +3,12 @@ certifi==2024.8.30 charset-normalizer==3.3.2 click==8.1.7 Flask==3.0.3 +gunicorn==23.0.0 idna==3.8 itsdangerous==2.2.0 Jinja2==3.1.4 MarkupSafe==2.1.5 +packaging==24.2 python-dotenv==1.0.1 requests==2.32.3 urllib3==2.2.2