You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SETUP.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@
28
28
- Générer un *hash* en base64 avec la commande `openssl rand -base64 32` (nécessite [OpenSSL](https://openssl-library.org/source/)) ;
29
29
- 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 ;
30
30
- 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` ;
32
32
- Démarrer le serveur local NodeJS avec la commande `npm run start` ;
33
33
-*(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)) ;
34
34
- 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 @@
71
71
- Generate a base64 hash using using `openssl rand -base64 32` (requires [OpenSSL](https://openssl-library.org/source/)) ;
72
72
- Set `AUTH_SECRET`[environment variable](https://github.com/FlorianLeChat/Simple-File-Storage/blob/master/.env) with the value generated in the previous step ;
73
73
- 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` ;
75
75
- Start NodeJS local server using `npm run start` ;
76
76
-*(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)) ;
77
77
- Compile scripts for scheduled tasks using `npx tsc --skipLibCheck scripts/expired-files.ts scripts/outdated-notifications.ts` ;
0 commit comments