https://pulumi.com logo
#general
Title
# general
a

agreeable-terabyte-59853

02/22/2022, 10:34 PM
Hi, How do I ensure that the variables in .env are properly loaded before I read them (I write to .env during runtime)? As of now, I get undefined.
l

little-cartoon-10569

02/22/2022, 10:37 PM
Not a lot of context there, but assuming you're talking about the same .env file as I'm thinking of: .env isn't a Pulumi file. It's used by convention in various technologies to set environment variables during startup. If you're writing to it during runtime, it won't do anything in the same runtime. You could source it while starting new processes or shells. Either way, it's not a particularly Pulumi-related problem.
👍 1
a

agreeable-terabyte-59853

02/23/2022, 10:55 AM
I see, thank you for your reply, much appreciated 🙂
7 Views