Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
| # Run dbt from repo root. The dbt project lives in dbt_project/. | |
| # | |
| # Usage (from repo root): | |
| # ./scripts/dbt.sh compile --select int_jurisdiction_websites | |
| # ./scripts/dbt.sh run | |
| set -euo pipefail | |
| ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| # Prefer project-local profiles (dbt_project/profiles.yml) over ~/.dbt so Neon | |
| # matches what you query in SQL clients using the same credentials. | |
| export DBT_PROFILES_DIR="${ROOT}/dbt_project" | |
| cd "${ROOT}/dbt_project" | |
| exec "${ROOT}/.venv-dbt/bin/dbt" "$@" | |