Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download scripts/dbt.sh from CommunityOne/open-navigator: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/scripts/dbt.sh
- Command line
-
hf download hf://spaces/CommunityOne/open-navigator/scripts/dbt.sh
-
curl -L -o dbt.sh https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/scripts/dbt.sh
532 Bytes
| # 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" "$@" | |