Rename build.sh to build-app.sh and check if build already exists
This commit is contained in:
parent
72d48df24d
commit
8a00891a53
@ -6,10 +6,10 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- REACT_APP_INFURA_KEY=${CERC_INFURA_KEY}
|
- REACT_APP_INFURA_KEY=${CERC_INFURA_KEY}
|
||||||
command: ["./build.sh"]
|
command: ["./build-app.sh"]
|
||||||
volumes:
|
volumes:
|
||||||
- uniswap_build:/app/build
|
- uniswap_build:/app/build
|
||||||
- ../config/uniswap-interface/build.sh:/app/build.sh
|
- ../config/uniswap-interface/build-app.sh:/app/build-app.sh
|
||||||
ports:
|
ports:
|
||||||
- "3000"
|
- "3000"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -5,6 +5,12 @@ if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
|||||||
set -x
|
set -x
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check and exit if a deployment already exists (on restarts)
|
||||||
|
if [ -f ./build ]; then
|
||||||
|
echo "build already exists, remove volume to rebuild"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
# Create symlink to host built files with correct URL path
|
# Create symlink to host built files with correct URL path
|
Loading…
Reference in New Issue
Block a user