From 526d6449e2155997aca35c7680c06632e5018a55 Mon Sep 17 00:00:00 2001 From: same-page-chat <55685557+same-page-chat@users.noreply.github.com> Date: Mon, 23 Sep 2019 02:12:43 -0700 Subject: [PATCH] update readme; port moved to .env file (#1) --- README.md | 2 ++ client/chatbox/.env | 3 ++- client/chatbox/package.json | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 96a18eb..a0af805 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ First, run the chat box app ``` cd client/chatbox +npm install . npm start ``` @@ -41,6 +42,7 @@ The first time you run this will be slower, because it needs to install all the ``` cd client/injection-script +npm install . npm start ``` diff --git a/client/chatbox/.env b/client/chatbox/.env index 7bd7bd7..3e53d25 100644 --- a/client/chatbox/.env +++ b/client/chatbox/.env @@ -1,2 +1,3 @@ NODE_PATH=src -INLINE_RUNTIME_CHUNK=false \ No newline at end of file +INLINE_RUNTIME_CHUNK=false +PORT=3000 \ No newline at end of file diff --git a/client/chatbox/package.json b/client/chatbox/package.json index 97aa224..0a53172 100644 --- a/client/chatbox/package.json +++ b/client/chatbox/package.json @@ -23,8 +23,8 @@ "videojs-youtube": "^2.6.0" }, "scripts": { - "start-ssl": "export HTTPS=true&&PORT=3000 react-scripts start", - "start": "PORT=3000 react-scripts start", + "start-ssl": "export HTTPS=true react-scripts start", + "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject-nonono": "react-scripts eject",