diff --git a/docs/dev/how-to-release.md b/docs/dev/how-to-release.md index 418e9b1ed3008..8e4f60795f109 100644 --- a/docs/dev/how-to-release.md +++ b/docs/dev/how-to-release.md @@ -30,13 +30,23 @@ To deploy you need to execute the following steps: git fetch git checkout $VERSION ``` +1. rebuild taxonomies and lang + ```bash + sudo -u off bash + cd /srv/$SERVICE + source env/setenv.sh $SERVICE + ./scripts/taxonomies/build_tags_taxonomy.pl + ./scripts/build_lang.pl + ``` 1. update the frontend assets you just downloaded ```bash sudo -u off /srv/$SERVICE/scripts/deploy/install-dist-files.sh ``` 1. restart services ```bash + sudo -u off bash sudo systemctl daemon-reload - sudo systemctl restart nginx apache2 - sudo systemctl restart cloud_vision_ocr@$SERVICE.service + sudo systemctl restart nginx + sudo systemctl stop apache2 cloud_vision_ocr@$SERVICE.service minion@$SERVICE.service + sudo systemctl start apache2 cloud_vision_ocr@$SERVICE.service minion@$SERVICE.service ``` \ No newline at end of file diff --git a/env/setenv.sh b/env/setenv.sh index 07d07b9eb1a8e..7afe4068d0cd8 100755 --- a/env/setenv.sh +++ b/env/setenv.sh @@ -28,11 +28,17 @@ MINION_QUEUE= # Load environment variables from env file source env/env.$1 -# Set a variable that we use in Makefile to add an extra env file +# Set a variable that we use in Makefile to add an extra env file # in addition to .env when we run docker compose EXTRA_ENV_FILE=env/env.$1 LOAD_EXTRA_ENV_FILE=--env-file=env/env.$1 +# eventually add lib for prod environment +if [[ -d /srv/$1/lib ]] +then + PERL5LIB=/srv/$1/lib +fi + set +o allexport # add (env) to the prompt