mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
25db029859
- docs/sql: organization_* 与 tenant_* 访客楼层策略脚本 - docs/testing: 访客邀约页初始化验证、pack 脚本与 README(忽略 dist/__pycache__) - maven-ninca-common-component-organization: CpImageStoreServiceImpl、starter、run-verify、releases 脚本与 javap 审计 JSON - docs/superpowers: component-org 生产问题修复计划 - scripts/test-env/prepare-db.sh 更新 Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
1009 B
Bash
Executable File
24 lines
1009 B
Bash
Executable File
#!/usr/bin/env bash
|
||
# 配置顺序:classpath(fat jar 内公共 application.properties)
|
||
# → 本目录 application.properties(本地 MySQL/Redis、关 Consul)。
|
||
set -euo pipefail
|
||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||
REPO_ROOT="$(cd "$SCRIPT_DIR/../../../../" && pwd)"
|
||
source "$REPO_ROOT/scripts/test-env/config/env.sh" 2>/dev/null || true
|
||
|
||
JAR="$SCRIPT_DIR/../../target/ninca-common-component-organization-2.9.4-xinghewan.jar"
|
||
JAVA_BIN="${JAVA_HOME:-/usr/lib/jvm/java-8-openjdk-amd64}/bin/java"
|
||
|
||
if [[ ! -f "$JAR" ]]; then
|
||
echo "Missing $JAR — run: mvn -pl cwos-component-organization-starter -am package -DskipTests" >&2
|
||
exit 1
|
||
fi
|
||
|
||
exec "$JAVA_BIN" -jar "$JAR" \
|
||
--spring.config.location="classpath:/,classpath:/config/,file:${SCRIPT_DIR}/" \
|
||
--spring.config.name=application \
|
||
--spring.cloud.bootstrap.location="file:${SCRIPT_DIR}/bootstrap.properties" \
|
||
--logging.config="file:${SCRIPT_DIR}/recognition-logback.xml" \
|
||
--spring.main.banner-mode=off \
|
||
"$@"
|