Branching Best Practices
Sorry if this is a common question - I didn't see it in the last few pages!
I'd like to know what the best practice is when dealing with branches and Supabase in multiple environments. Let's say I am working with 4 instances of a service [local, dev, stage, prod]. In this case local dev, prod are clear.
Local can use the local Supabase instance with the CLI, prod is the main branch, and dev is ephemeral branching. How is staging branch managed? My understanding is that it costs the same amount of money to have a branch existing whether it's paused or not. Is it really best practice then to just keep the stage branch running 24/7 or is it worth juggling tearing it down and spinning it up for cost savings?
Understanding here is that a branch only costs around $10 a month to run, so it's really hard for me to justify any cost savings there or best practices when it comes to tearing down the staging branch.
The alternative was that I was giong to have the CI nuke the branch every 3 hours and then have it spun back up with the CI when it's needed, but seems like an unnecessary extra 5 minutes to add each time to save maybe $5 a month. Is that logic right?
I'm fairly new to Supabase in general, so sorry if I've asked some pretty fundamental questions.
I'd like to know what the best practice is when dealing with branches and Supabase in multiple environments. Let's say I am working with 4 instances of a service [local, dev, stage, prod]. In this case local dev, prod are clear.
Local can use the local Supabase instance with the CLI, prod is the main branch, and dev is ephemeral branching. How is staging branch managed? My understanding is that it costs the same amount of money to have a branch existing whether it's paused or not. Is it really best practice then to just keep the stage branch running 24/7 or is it worth juggling tearing it down and spinning it up for cost savings?
Understanding here is that a branch only costs around $10 a month to run, so it's really hard for me to justify any cost savings there or best practices when it comes to tearing down the staging branch.
The alternative was that I was giong to have the CI nuke the branch every 3 hours and then have it spun back up with the CI when it's needed, but seems like an unnecessary extra 5 minutes to add each time to save maybe $5 a month. Is that logic right?
I'm fairly new to Supabase in general, so sorry if I've asked some pretty fundamental questions.