https://dagster.io/ logo
#dagster-support
Title
# dagster-support
a

Alexander Whillas

07/12/2022, 3:57 AM
Different environments? What's the recommended way to run DEV and PROD environments? If I setup different environments like in this example how should i determine which one to run? Different
repo.py
files for each env? Different
workspaces.yaml
files? Look for an environment variable?
1
🤖 1
y

yuhan

07/12/2022, 5:51 PM
Great question - we’re actively discussing this patten internally right now. Will keep you posted with our recommendations!
One option we’re considering is to vary definitions based on environment variable. Here’s an example: https://github.com/dagster-io/dagster/blob/master/examples/hacker_news_assets/hacker_news_assets/__init__.py#L41 cc @sandy
a

Alexander Whillas

07/12/2022, 9:29 PM
yeah, factory design pattern. I've gone with different workspace files for now as it seemed easiest.