mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-16 04:28:39 +00:00
The create-namespace dialog validates slugs client-side before sending the request, and its pattern was still ASCII-only. SlugValidator has accepted Unicode letters, numbers and symbols since #196, so the form rejected slugs the server accepts. Signed-off-by: D41910 <158550716+D41910@users.noreply.github.com>
18 lines
554 B
Bash
Executable file
18 lines
554 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
SERVER_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
PROFILE="${SPRING_PROFILES_ACTIVE:-local}"
|
|
|
|
cd "$SERVER_DIR"
|
|
|
|
./mvnw -pl skillhub-app -am clean package -DskipTests >/dev/null
|
|
|
|
APP_JAR="$(find skillhub-app/target -maxdepth 1 -type f -name 'skillhub-app-*.jar' ! -name '*.original' | head -n 1)"
|
|
if [[ -z "$APP_JAR" ]]; then
|
|
echo "Could not locate packaged skillhub-app jar under skillhub-app/target" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec "${JAVA_BIN:-java}" -jar "$APP_JAR" --spring.profiles.active="$PROFILE" "$@"
|