#!/usr/bin/env bash set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" if [ -f "${ROOT_DIR}/.env" ]; then set -a # shellcheck disable=SC1091 . "${ROOT_DIR}/.env" set +a fi cd "${ROOT_DIR}" if [ -x "${ROOT_DIR}/steep-server" ]; then exec "${ROOT_DIR}/steep-server" migration apply "$@" else exec cargo run -p steep-server -- migration apply "$@" fi