Skip to content

Commit

Permalink
perf(loterre-resolvers): Move databases to .databases
Browse files Browse the repository at this point in the history
To hide databases from files scanned by root route.
  • Loading branch information
parmentf committed Dec 3, 2024
1 parent ed9c271 commit 6f375e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions services/loterre-resolvers/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cd /app/public || exit 2

# Restore databases
for tgz in /app/data/*.tgz; do su -s /bin/bash daemon -c "tar -xf $tgz"; done
mv /app/public/databases /app/public/.databases

# Run ezs server as daemon user
su -s /bin/bash daemon -c "npx dotenv -e ../.env -- npx ezs --daemon ./"
2 changes: 1 addition & 1 deletion services/loterre-resolvers/v1/combine.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Configuration du chemin de stockage des bases des données locales
[env]
path = location
value = fix(`/app/public/databases/${env('loterreID', 'noid')}`)
value = fix(`/app/public/.databases/${env('loterreID', 'noid')}`)

# STEP 0 : On normalise la valeur à rechercher (de la même manière que l'index a été créé)
[assign]
Expand Down

0 comments on commit 6f375e5

Please sign in to comment.