Is it possible to add a $ENV variable? Such that I...
# troubleshooting
r
Is it possible to add a $ENV variable? Such that I can give a path to dev and prod:
data_path = $MELTANO_ROOT/data/$ENV/
should print:
data_path = $MELTANO_ROOT/data/PROD/
data_path = $MELTANO_ROOT/data/DEV/
such that I don't need to define everything twice like this
Copy code
environments:
- name: dev
  config:
    plugins:
      extractors:..

- name: prod
  config:
    plugins:
      extractors:..
e
Hi! The variable should be expanded if it's set in your shell. So
Copy code
ENV=PROD meltano run ....
should work
r
is that the meltano way of doing it?
e
Yeah, if it's a variable that should change at runtime that's a valid way
r
thank you 🙂