Add a stack for running uniswap frontend on urbit #670

Merged
nikugogoi merged 25 commits from ng-uniswap-frontend into main 2023-12-04 13:09:20 +00:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit 8a00891a53 - Show all commits

View File

@ -6,10 +6,10 @@ services:
restart: unless-stopped
environment:
- REACT_APP_INFURA_KEY=${CERC_INFURA_KEY}
command: ["./build.sh"]
command: ["./build-app.sh"]
volumes:
- uniswap_build:/app/build
- ../config/uniswap-interface/build.sh:/app/build.sh
- ../config/uniswap-interface/build-app.sh:/app/build-app.sh
ports:
- "3000"
healthcheck:

View File

@ -5,6 +5,12 @@ if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x
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
Review

ideally this would happen during a build step rather than at deploy time

ideally this would happen during a build step rather than at deploy time
# Create symlink to host built files with correct URL path