Skip to content

← All questions

Dataset table needs env.db in envs/staging.yaml — which database is it asking for?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Added a db dataset for our reference data:

yaml
data:
  sources:
    orders: { type: db, table: td_demo_shop_orders, envColumn: env }

Works on local, fails on staging:

text
✖ DB_REQUIRED: Dataset table "td_demo_shop_orders" needs env.db in envs/staging.yaml.

We already have a database configured — DATABASE_URL is set in CI and sdods db status is happy. So which database does the dataset want, and why is the environment file involved when the other one is not?

1 answer

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related