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

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related