Skip to content

Commit 00fda85

Browse files
committed
Replaced outdated npm command npm prune --production
1 parent 543c661 commit 00fda85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SETUP.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
- Générer un *hash* en base64 avec la commande `openssl rand -base64 32` (nécessite [OpenSSL](https://openssl-library.org/source/)) ;
2929
- Modifier la [variable d'environnement](https://github.com/FlorianLeChat/Simple-File-Storage/blob/master/.env) `AUTH_SECRET` avec la valeur générée à l'étape précédente ;
3030
- Compiler les fichiers statiques du site Internet avec la commande `npm run build` ;
31-
- Supprimer les dépendances de développement avec la commande `npm prune --production` ;
31+
- Supprimer les dépendances de développement avec la commande `npm prune --omit=dev` ;
3232
- Démarrer le serveur local NodeJS avec la commande `npm run start` ;
3333
- *(Facultatif)* Utiliser [Varnish](https://varnish-cache.org/) comme serveur de cache HTTP pour atténuer les effets des fortes charges ([configuration intégrée](https://github.com/FlorianLeChat/Simple-File-Storage/blob/master/docker/configuration/default.vcl)) ;
3434
- Compiler les scripts destinés aux tâches planifiées avec la commande `npx tsc --skipLibCheck scripts/expired-files.ts scripts/outdated-notifications.ts` ;
@@ -71,7 +71,7 @@
7171
- Generate a base64 hash using using `openssl rand -base64 32` (requires [OpenSSL](https://openssl-library.org/source/)) ;
7272
- Set `AUTH_SECRET` [environment variable](https://github.com/FlorianLeChat/Simple-File-Storage/blob/master/.env) with the value generated in the previous step ;
7373
- Build static website files using `npm run build` ;
74-
- Remove development dependencies using `npm prune --production` ;
74+
- Remove development dependencies using `npm prune --omit=dev` ;
7575
- Start NodeJS local server using `npm run start` ;
7676
- *(Optional)* Use [Varnish](https://varnish-cache.org/) as an HTTP cache server to mitigate effects of heavy loads ([built-in configuration](https://github.com/FlorianLeChat/Simple-File-Storage/blob/master/docker/configuration/default.vcl)) ;
7777
- Compile scripts for scheduled tasks using `npx tsc --skipLibCheck scripts/expired-files.ts scripts/outdated-notifications.ts` ;

docker/scripts/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ RUN npx tsc --skipLibCheck scripts/create-fake-accounts.ts scripts/expired-files
3535
USER node
3636

3737
# Prepare project files and configuration to be built
38-
RUN npm run build && npm prune --production && \
38+
RUN npm run build && npm prune --omit=dev && \
3939
chmod +x ./docker/scripts/entrypoint.sh ./docker/scripts/logrotate.sh

0 commit comments

Comments
 (0)