Skip to content

← All questions

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

Asked 4,090 views1 answer

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?

asked by Helle Borg352 ·

1 answer

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related