You can easily make changes in dbt and see them updated in your Lightdash project.
Refresh dbt
.
model.sql
file or changing the SQL logic of a dimension), then you need to run: dbt run -m yourmodel
before you click Refresh dbt
in Lightdash.lightdash deploy
to deploy your changes to Lightdash. Read more about how to use lightdash deploy
.
lightdash deploy
from your local environment as the primary way you update Lightdash since small mistakes can lead to production issues.profiles.yml
file when you run lightdash deploy
(if that’s how you created or recently deployed your project).
If you want to update this, you can enter the target of your choice in the project settings (for example prod
or analytics
.)
Read more about dbt targets in the dbt docs.
my_model
and all models with the lightdash
tag in Lightdash, you can add the following to your dbt project settings:
profiles.yml
file, you can add these to Lightdash here.
For each environment variable, you’ll need to add the key
+ value
pair for the item.
You’ll normally find these values in a file called .env
in your dbt project directory.
For example, I might have something like:
.env
file like:
key
as DBT_USER
and value
as myspecialuserkey123
.