I have a local cluster working, but how do I switc...
# prisma-whats-new
l
I have a local cluster working, but how do I switch to the prisma-us1 cluster (and back again)?
after doing that once, you can use environment variables to switch between the clusters/stages
l
not entirely clear. I am not interested in the data so no need to export. Step 2 is not clear as there are manual steps and deleting information. All I want is to have us1 as an option to deploy to
Is it just a matter of creating another prisma.yml file?
I already have a .env. Do I need another one of those?
n
just Remove the cluster property from your current one and deploy again
l
I see.. that works, though it adds the cluster line back once I do a deploy. Do I need to delete this line everytime I want to switch clusters?
Is there more work to be done around this?
Can I control this through the env file and not the prisma.yml?
i.e. having multiple env files?
n
you can control it with the env file.
l
I am not too up with how node etc works with env files but will look at it in more detail. ideally I just "swap" in out .env files. Thanks
n
you can define the .env file at deploy time:
prisma deploy -e .<http://env.my|env.my>
l
ahh.. that would be it. thanks