From a65ce56b42a0395538884c2dfe0c9454c9b70b9f Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Mon, 27 Jan 2025 09:43:43 +0100 Subject: [PATCH] docs: add missing env file flag to frontend start command --- CONTRIBUTING.md | 2 +- docs/docs/setup/upgrading.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4c00208..00db5bb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,5 +69,5 @@ We are using [Playwright](https://playwright.dev) for end-to-end testing. The tests can be run like this: 1. Start the backend normally -2. Start the frontend in production mode with `npm run build && node build/index.js` +2. Start the frontend in production mode with `npm run build && node --env-file=.env build/index.js` 3. Run the tests with `npm run test` diff --git a/docs/docs/setup/upgrading.md b/docs/docs/setup/upgrading.md index 283c5d1..3383fd5 100644 --- a/docs/docs/setup/upgrading.md +++ b/docs/docs/setup/upgrading.md @@ -37,7 +37,7 @@ docker compose up -d cd ../frontend npm install npm run build - pm2 start build/index.js --name pocket-id-frontend + pm2 start --name pocket-id-frontend --node-args="--env-file .env" build/index.js # Optional: Start Caddy (You can use any other reverse proxy) cd ..