Remplace les chemins de dev par des placeholders dans la doc cron

This commit is contained in:
unfr
2026-04-23 08:47:13 +02:00
parent 3563de52e9
commit 7170953606
2 changed files with 7 additions and 6 deletions

View File

@@ -62,20 +62,21 @@ npm run cron:search # construction des chunks de recherche
npm run cron:ambiguity # detection des doublons (CSV)
```
Crontab système recommandée :
Crontab système recommandée (remplace `/chemin/vers/proxytmdb` par le
chemin absolu d'installation) :
```
13 13 * * * /home/matt/_WEB/proxytmdb/cron/run.sh > /home/matt/_WEB/proxytmdb/lastcron.txt 2>&1
13 13 * * * /chemin/vers/proxytmdb/cron/run.sh > /chemin/vers/proxytmdb/lastcron.txt 2>&1
```
Le wrapper [cron/run.sh](cron/run.sh) charge nvm puis lance Node sur la
version `nvm alias default` — pratique si tu mets à jour Node via nvm, le
cron suivra automatiquement.
Si tu n'utilises pas nvm, remplace par :
Si tu n'utilises pas nvm :
```
13 13 * * * cd /home/matt/_WEB/proxytmdb && /usr/bin/node --env-file-if-exists=.env cron/runAll.js > lastcron.txt 2>&1
13 13 * * * cd /chemin/vers/proxytmdb && /usr/bin/node --env-file-if-exists=.env cron/runAll.js > lastcron.txt 2>&1
```
## Endpoints HTTP

View File

@@ -3,8 +3,8 @@
# Wrapper de lancement du cron pour environnement nvm.
# Cron n'a pas le PATH de nvm — ce script charge nvm puis lance le cron Node.
#
# Utilisation crontab :
# 13 13 * * * /home/matt/_WEB/proxytmdb/cron/run.sh > /home/matt/_WEB/proxytmdb/lastcron.txt 2>&1
# Utilisation crontab (remplace /chemin/vers/proxytmdb) :
# 13 13 * * * /chemin/vers/proxytmdb/cron/run.sh > /chemin/vers/proxytmdb/lastcron.txt 2>&1
set -e