From 937a1c33c6c3bd0e20f8959111d82217e59cb5ce Mon Sep 17 00:00:00 2001 From: Nabarun Date: Mon, 29 Jul 2024 10:44:34 +0530 Subject: [PATCH 1/2] Setup stack http server for SPA --- stack/stack-orchestrator/config/app/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack/stack-orchestrator/config/app/run.sh b/stack/stack-orchestrator/config/app/run.sh index 2a1b6f3..18cbd03 100755 --- a/stack/stack-orchestrator/config/app/run.sh +++ b/stack/stack-orchestrator/config/app/run.sh @@ -16,4 +16,4 @@ REACT_APP_DEFAULT_GAS_PRICE=$DEFAULT_GAS_PRICE \ REACT_APP_GAS_ADJUSTMENT=$GAS_ADJUSTMENT \ yarn build -http-server -p 80 /app/build +http-server --proxy http://localhost:80? -p 80 /app/build -- 2.45.2 From d6b9bb900120c67838b72f3f7b79dca7fd808495 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 29 Jul 2024 12:30:50 +0530 Subject: [PATCH 2/2] Fix script to run wallet in the stack --- stack/stack-orchestrator/config/app/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stack/stack-orchestrator/config/app/run.sh b/stack/stack-orchestrator/config/app/run.sh index 18cbd03..95d8d4c 100755 --- a/stack/stack-orchestrator/config/app/run.sh +++ b/stack/stack-orchestrator/config/app/run.sh @@ -12,8 +12,8 @@ echo "CERC_GAS_ADJUSTMENT: ${CERC_GAS_ADJUSTMENT}" # Build with required env REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_ID \ -REACT_APP_DEFAULT_GAS_PRICE=$DEFAULT_GAS_PRICE \ -REACT_APP_GAS_ADJUSTMENT=$GAS_ADJUSTMENT \ +REACT_APP_DEFAULT_GAS_PRICE=$CERC_DEFAULT_GAS_PRICE \ +REACT_APP_GAS_ADJUSTMENT=$CERC_GAS_ADJUSTMENT \ yarn build http-server --proxy http://localhost:80? -p 80 /app/build -- 2.45.2