From 5427e992e35b48de02cd8b987353a3454de8e62e Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Tue, 1 Feb 2022 12:35:46 -0500 Subject: [PATCH 1/2] bin changes --- bin/dev | 2 +- bin/prod | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/dev b/bin/dev index 94d7a5db..e1dad1ce 100644 --- a/bin/dev +++ b/bin/dev @@ -3,6 +3,6 @@ const startServer = require("./www"); const serverPort = 3005; -const initialClient = ""; +const initialClient = "http://localhost:8080/test-ehr/r4"; startServer(serverPort, initialClient); \ No newline at end of file diff --git a/bin/prod b/bin/prod index 94d7a5db..88b43721 100644 --- a/bin/prod +++ b/bin/prod @@ -2,7 +2,7 @@ const startServer = require("./www"); -const serverPort = 3005; -const initialClient = ""; +const serverPort = process.env.REACT_APP_SERVER_PORT ? process.env.RREACT_APP_SERVER_PORT : 3005; +const initialClient = process.env.REACT_APP_INITIAL_CLIENT ? process.env.REACT_APP_INITIAL_CLIENT : "http://localhost:8080/test-ehr/r4"; startServer(serverPort, initialClient); \ No newline at end of file From 80f6d0289a030e402af3e5c2776a226545cc188d Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Tue, 1 Feb 2022 12:38:47 -0500 Subject: [PATCH 2/2] bin changes bug fix --- bin/dev | 2 +- bin/prod | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/dev b/bin/dev index e1dad1ce..0d61bda8 100644 --- a/bin/dev +++ b/bin/dev @@ -3,6 +3,6 @@ const startServer = require("./www"); const serverPort = 3005; -const initialClient = "http://localhost:8080/test-ehr/r4"; +const initialClient = "http://localhost:8080/test-ehr/r4::app-login"; startServer(serverPort, initialClient); \ No newline at end of file diff --git a/bin/prod b/bin/prod index 88b43721..9f01282b 100644 --- a/bin/prod +++ b/bin/prod @@ -2,7 +2,7 @@ const startServer = require("./www"); -const serverPort = process.env.REACT_APP_SERVER_PORT ? process.env.RREACT_APP_SERVER_PORT : 3005; -const initialClient = process.env.REACT_APP_INITIAL_CLIENT ? process.env.REACT_APP_INITIAL_CLIENT : "http://localhost:8080/test-ehr/r4"; +const serverPort = process.env.REACT_APP_SERVER_PORT ? process.env.REACT_APP_SERVER_PORT : 3005; +const initialClient = process.env.REACT_APP_INITIAL_CLIENT ? process.env.REACT_APP_INITIAL_CLIENT : "http://localhost:8080/test-ehr/r4::app-login"; startServer(serverPort, initialClient); \ No newline at end of file