Skip to content

Commit

Permalink
docs: fixes after review in release
Browse files Browse the repository at this point in the history
+ set PERL5LIB in prod as we set environment
  • Loading branch information
alexgarel committed Jan 8, 2025
1 parent 20e33a4 commit fa7d568
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
14 changes: 12 additions & 2 deletions docs/dev/how-to-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
8 changes: 7 additions & 1 deletion env/setenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa7d568

Please sign in to comment.