From a6473a94da7fb994fb246c80cc5c2692b3b25f83 Mon Sep 17 00:00:00 2001 From: Debdut Chakraborty Date: Wed, 26 Jan 2022 04:15:59 +0530 Subject: [PATCH] README(.,cms): use environment variable to change strapi port Signed-off-by: Debdut Chakraborty --- README.md | 4 ++-- cms/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f4dcaa56..e6e87e53 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,10 @@ During development, our data provider is a headless CMS, strapi. Note that it is used only during development and build time, not during production. -By default, strapi listens on port 1337. If you're using WSL2 on Windows and also running Docker Desktop, port 1337 may not be available on your system. To use port 3000 instead, change this line in `config/server.js` file: +By default, strapi listens on port 1337. If you're using WSL2 on Windows and also running Docker Desktop, port 1337 may not be available on your system. To use port 3000 instead, set the environment variable `PORT` to 3000. ``` - port: env.int('PORT', 3000), +export PORT=3000 ``` Start strapi: diff --git a/cms/README.md b/cms/README.md index 98ae6997..f444aedd 100644 --- a/cms/README.md +++ b/cms/README.md @@ -4,10 +4,10 @@ This stores the structure and data used to statically generate the community sys ### Developer quick start -By default, strapi listens on port 1337. If you're using WSL2 on Windows and also running Docker Desktop, port 1337 may not be available on your system. To use port 3000 instead, change this line in `config/server.js` file: +By default, strapi listens on port 1337. If you're using WSL2 on Windows and also running Docker Desktop, port 1337 may not be available on your system. To use port 3000 instead, set the environment variable `PORT` to 3000. ``` - port: env.int('PORT', 3000), +export PORT=3000 ``` Start strapi: