chore: initialize wygj monorepo
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
cd "$ROOT_DIR/backend"
|
||||
mkdir -p "$ROOT_DIR/.data/import"
|
||||
|
||||
JAR="ruoyi-admin/target/ruoyi-admin.jar"
|
||||
NEEDS_BUILD=false
|
||||
|
||||
if [[ ! -f "$JAR" ]]; then
|
||||
NEEDS_BUILD=true
|
||||
elif find ruoyi-admin ruoyi-common ruoyi-modules -type f \( -name '*.java' -o -name '*.xml' -o -name '*.yml' -o -name 'pom.xml' \) -newer "$JAR" -print -quit | grep -q .; then
|
||||
NEEDS_BUILD=true
|
||||
fi
|
||||
|
||||
if [[ "$NEEDS_BUILD" == true ]]; then
|
||||
mvn -pl ruoyi-admin -am -DskipTests package
|
||||
fi
|
||||
|
||||
exec java -jar "$JAR" \
|
||||
"--spring.datasource.dynamic.datasource.master.url=jdbc:mysql://localhost:13306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true" \
|
||||
"--spring.data.redis.port=16379" \
|
||||
"--spring.boot.admin.client.enabled=false" \
|
||||
"--snail-job.enabled=false" \
|
||||
"--aihr.import.root=$ROOT_DIR/.data/import"
|
||||
Reference in New Issue
Block a user