Skip to content

Commit c65dac5

Browse files
authored
Merge pull request #439 from PaulLabruyere/always_use_server_side_rendering
[Frontend build] Always use server side rendering
2 parents 448a8bb + 6275be9 commit c65dac5

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

docs/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,13 +417,13 @@ Après chaque modification sur un des éléments qui concerne le frontend, il fa
417417
::
418418

419419
cd ~/gncitizen/frontend/
420-
npm run ng build -- --prod
420+
npm run build:i18n-ssr
421421

422422
Si vous souhaitez que l'application soit disponible depuis un chemin spécifique (ex: ``mondomaine.org/citizen``), remplacez la dernière commande par
423423

424424
::
425425

426-
npm run ng build -- --prod --base-href=/citizen/
426+
npm run build:i18n-ssr --base-href=/citizen/
427427

428428

429429
Lancement des services

install/update_app.sh

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,33 @@
22

33
cd $(dirname $(dirname "${BASH_SOURCE[0]:-$0}"))
44

5-
#Mise à jour du git
6-
5+
# Mise à jour du git
76
git pull
87

98
. config/settings.ini
109
npm install
11-
#Transpilation du frontend
10+
11+
# Transpilation du frontend
1212
cd frontend
1313
npm install
14-
if [ $server_side = "true" ]; then
15-
echo "Build server side project"
16-
npm run build:i18n-ssr
17-
echo "Reloading Front server ..."
18-
sudo -s supervisorctl reload geonature
19-
else
20-
echo "Build du projet"
21-
npm run build
22-
fi
14+
15+
echo "Build frontend"
16+
npm run build:i18n-ssr
17+
18+
echo "Reloading Front server ..."
19+
sudo -s supervisorctl reload geonature
20+
2321
cd ..
2422

2523
# Mise a jour des requirements
2624
FLASKDIR=$(readlink -e "${0%/*}")
2725
APP_DIR="$(dirname "$FLASKDIR")"
28-
venv_dir="venv"
26+
venv_dir=".venv"
2927
venv_path=$FLASKDIR/backend/$venv_dir
3028
source $venv_path/bin/activate
3129
echo $(pwd)
3230
pip install -r backend/requirements.txt
3331

34-
#Reload Supervisor pour l'api
32+
# Reload Supervisor pour l'api
3533
echo "Reloading Api ..."
3634
sudo -s supervisorctl reload api_geonature

0 commit comments

Comments
 (0)