infra/dev: env_value defaults match compose, die helper, shared Gradle lock check; drop unused RCLONE_REMOTE and M2a leftovers; fix stale Pi compose path
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TQd3pEP9UeN2uifbHknQ7B
This commit is contained in:
+4
-5
@@ -11,7 +11,7 @@ if [[ "${1:-}" == "--down" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
port="$(dev_port)"
|
||||
port="$(env_value KVITT_DEV_PORT 8080)"
|
||||
lan="$(lan_address || true)"
|
||||
|
||||
public_url="$(env_value KVITT_PUBLIC_URL)"
|
||||
@@ -20,8 +20,8 @@ if [[ -z "$public_url" ]]; then
|
||||
fi
|
||||
export KVITT_PUBLIC_URL="$public_url"
|
||||
|
||||
data_dir="$(dev_path "$(env_value KVITT_DEV_DATA_DIR)")"
|
||||
secrets_dir="$(dev_path "$(env_value KVITT_SECRETS_DIR)")"
|
||||
data_dir="$(dev_path "$(env_value KVITT_DEV_DATA_DIR ./data)")"
|
||||
secrets_dir="$(dev_path "$(env_value KVITT_SECRETS_DIR ../secrets)")"
|
||||
mkdir -p "$data_dir"
|
||||
if [[ ! -f "$secrets_dir/fcm-service-account.json" ]]; then
|
||||
echo "up.sh: no $secrets_dir/fcm-service-account.json; the server starts with push disabled." >&2
|
||||
@@ -40,5 +40,4 @@ for _ in $(seq 1 30); do
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
echo "up.sh: /health did not answer within 30 s; see infra/dev/logs.sh" >&2
|
||||
exit 1
|
||||
die "/health did not answer within 30 s; see infra/dev/logs.sh"
|
||||
|
||||
Reference in New Issue
Block a user