fix react base url composition in entrypoint.sh

This commit is contained in:
Dave Horton
2021-01-12 09:44:39 -05:00
parent 30bcf9414f
commit 01c0aa321e

View File

@@ -2,7 +2,7 @@
PUBLIC_IPV4="$(curl --fail -qs whatismyip.akamai.com)"
API_PORT="${API_PORT:-3000}"
API_VERSION="${API_VERSION:-v1}"
echo "REACT_APP_API_BASE_URL=${REACT_APP_API_BASE_URL:-http://$PUBLIC_IPV4}:$API_PORT/$API_VERSION" > /opt/app/.env
echo "REACT_APP_API_BASE_URL=${REACT_APP_API_BASE_URL:-http://$PUBLIC_IPV4:$API_PORT/$API_VERSION}" > /opt/app/.env
cd /opt/app/
npm run build
npm run serve