laconic-wallet-web/stack/stack-orchestrator/config/app/run.sh
prathamesh0 c7310b8e6d
Add a laconic-wallet-web stack (#3)
* Add a laconic-wallet-web stack

* Restructure stack folder

* Add transform-modules-commonjs babel plugin
2024-07-26 16:02:27 +05:30

20 lines
484 B
Bash
Executable File

#!/bin/bash
set -e
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x
fi
echo "Using the following env variables:"
echo "WALLET_CONNECT_ID: ${WALLET_CONNECT_ID}"
echo "CERC_DEFAULT_GAS_PRICE: ${CERC_DEFAULT_GAS_PRICE}"
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 \
yarn build
http-server -p 80 /app/build