fix: align business reports and record task migration progress
This commit is contained in:
@@ -47,6 +47,7 @@ if [[ "$MODE" == '--build-only' ]]; then exit 0; fi
|
||||
|
||||
test -s "$BASE_DIR/config/config.yaml"
|
||||
test -f "$BASE_DIR/runtime.env"
|
||||
test -f "$RELEASE/wait-backend.sh"
|
||||
install -d -o 1000 -g 1000 -m 0750 "$BASE_DIR/config" "$BASE_DIR/log" "$BASE_DIR/uploads"
|
||||
chown 1000:1000 "$BASE_DIR/config/config.yaml"
|
||||
chmod 0600 "$BASE_DIR/config/config.yaml" "$BASE_DIR/runtime.env"
|
||||
@@ -98,12 +99,7 @@ docker run -d --name sw2-backend --label com.sw2.application=sw2 \
|
||||
-v "$BASE_DIR/config:/data/conf" -v "$BASE_DIR/log:/app/logs" -v "$BASE_DIR/uploads:/app/uploads" \
|
||||
"$BACKEND_IMAGE"
|
||||
|
||||
ready=false
|
||||
for attempt in $(seq 1 45); do
|
||||
if curl -fsS --max-time 3 http://127.0.0.1:9602/health >/dev/null 2>&1; then ready=true; break; fi
|
||||
sleep 2
|
||||
done
|
||||
[[ "$ready" == true ]] || { echo 'Backend health check failed' >&2; false; }
|
||||
bash "$RELEASE/wait-backend.sh"
|
||||
|
||||
created+=(sw2-frontend)
|
||||
docker run -d --name sw2-frontend --label com.sw2.application=sw2 \
|
||||
|
||||
Reference in New Issue
Block a user