https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
b

bumpy-night-17694

09/27/2023, 8:59 PM
hi growthbook. what’s the best way to create an experiment in two environments? This is our workflow right now: 1. create feature flag and only toggle active in dev environment 2. create AB Experiment in dev environment 3. develop our code 4. when we’re ready to go live, click on the 3 dots in the dev experiment and
copy to prod
5. toggle feature active in prod This was working fine, but now the environment thats copied to (so prod in this case), no longer ever evaluates to the variant. It always returns the control. I recreated the steps but swapping dev and prod (so create in prod first and then copy to dev) and i see the same result. Using Growthbook devtools, I see the variant value. But when I log the result from
evalFeature
it, I see the control value.
h

helpful-application-7107

09/28/2023, 4:03 PM
I think this should be our expected flow as well. What are you using to test evaluating to the variant?
b

bumpy-night-17694

09/28/2023, 5:38 PM
for this test i just grab the value and display different text. But no matter how many times i open a new private window, clear cache/cookies, etc, i never get the variant.
hmmm, i just tested again and now i do get the variant. maybe it was just really bad luck before? anyways, thank you.
h

helpful-application-7107

09/28/2023, 6:57 PM
Yeah it's totally possible that it was bad luck.
There's nothing I can see that would explain it otherwise, and it's why I asked about testing since I thought it might be in there!
We're also hoping to launch some more testing utilities within GrowthBook
16 Views