mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
fix: remove ZK discovery dep, bootstrap identical to V1
- Remove spring-cloud-starter-zookeeper-discovery from POM (V1 doesn't have it, causes zookeeperRibbonClientConfiguration error) - Remove ZK exclusions from AppApplication.java (no longer needed) - bootstrap.properties now 100% identical to V1 production - PersonFeignClient restored to placeholder-based name (no hardcoded URL) - Remove NIWSServerListClassName/listOfServers (ConfigurationBasedServerList) Bump version to 2.0.17
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
# 与「星中心」V1 部署习惯对齐:本脚本与 cw-elevator-application-V1.0.0.20211103.jar、bootstrap/application*.properties 位于同一目录。
|
||||
# 覆盖 JVM:设置环境变量 ELEVATOR_JAVA_OPTS(可选);指定 Java:JAVA_HOME 或 JAVA_CMD。
|
||||
set -euo pipefail
|
||||
dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
cd "$dir"
|
||||
JAR="cw-elevator-application-V1.0.0.20211103.jar"
|
||||
if [[ ! -f "$JAR" ]]; then
|
||||
echo "ERROR: 未找到 ${JAR}(当前目录 $(pwd))" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ -n "${JAVA_CMD:-}" ]]; then
|
||||
JAVA_EXEC="$JAVA_CMD"
|
||||
elif [[ -n "${JAVA_HOME:-}" && -x "${JAVA_HOME}/bin/java" ]]; then
|
||||
JAVA_EXEC="${JAVA_HOME}/bin/java"
|
||||
else
|
||||
JAVA_EXEC="/usr/lib/jvm/java-8-openjdk-amd64/bin/java"
|
||||
fi
|
||||
if [[ -z "${ELEVATOR_JAVA_OPTS:-}" ]]; then
|
||||
ELEVATOR_JAVA_OPTS="-Xmx3072m -Xms3072m -Xmn1024m"
|
||||
fi
|
||||
# shellcheck disable=SC2086
|
||||
exec "$JAVA_EXEC" $ELEVATOR_JAVA_OPTS -jar "$JAR"
|
||||
Reference in New Issue
Block a user