export to public
This commit is contained in:
13
start.sh
13
start.sh
@@ -132,15 +132,18 @@ fi
|
||||
|
||||
wait_for_port "127.0.0.1" "$FRONTEND_PORT" "frontend"
|
||||
|
||||
SERVER_IP="$(hostname -I 2>/dev/null | awk '{print $1}')"
|
||||
if [[ -z "$SERVER_IP" ]]; then
|
||||
SERVER_IP="127.0.0.1"
|
||||
DISPLAY_HOST="${PUBLIC_HOST:-}"
|
||||
if [[ -z "$DISPLAY_HOST" ]]; then
|
||||
DISPLAY_HOST="$(hostname -I 2>/dev/null | awk '{print $1}')"
|
||||
fi
|
||||
if [[ -z "$DISPLAY_HOST" ]]; then
|
||||
DISPLAY_HOST="127.0.0.1"
|
||||
fi
|
||||
|
||||
cat <<EOF
|
||||
VPlatform started in background.
|
||||
Frontend: http://${SERVER_IP}:${FRONTEND_PORT}
|
||||
Backend: http://${SERVER_IP}:${BACKEND_PORT}
|
||||
Frontend: http://${DISPLAY_HOST}:${FRONTEND_PORT}
|
||||
Backend: http://${DISPLAY_HOST}:${BACKEND_PORT}
|
||||
|
||||
Logs:
|
||||
$BACKEND_LOG_FILE
|
||||
|
||||
Reference in New Issue
Block a user