Skip to content

Commit

Permalink
fix: default manager url
Browse files Browse the repository at this point in the history
  • Loading branch information
birme committed Jun 5, 2024
1 parent bf147be commit 2cfddb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

LISTENPORT="${PORT:-3000}"
sed -i "s/listen\s*8080;/listen $LISTENPORT;/" /etc/nginx/conf.d/default.conf
API_URL="${MANAGER_URL:-/}"

VITE_BACKEND_URL=$MANAGER_URL yarn build && \
VITE_BACKEND_URL=$API_URL yarn build && \
cp -r /app/dist/* /usr/share/nginx/html/ && \
nginx -g 'daemon off;'

0 comments on commit 2cfddb0

Please sign in to comment.