#!/usr/bin/env bash

set -euo pipefail

source "$( dirname "${BASH_SOURCE[0]}" )/common-functions.sh"

get_secret() {
  aws secretsmanager get-secret-value --secret-id "$1" --output text --query SecretString
}

require_command humanlog

require_env SPRING_PROFILES_ACTIVE

cd "$REPO_ROOT"/server
./mvnw spring-boot:run | humanlog --truncate-length 9999
