I started down the path of creating a staging project for one of my apps, but this was right when multiple sites were introduced to hosting and I saw in the docs that's the suggested way of doing this. I think the biggest obstacle I had was getting the database connection right when swapping back and forth between environments. I'll have to go back and see how I did that. I imagine you avoid that completely with this approach.
π¦ Writing about developer experience, leadership, and mental health
π» Co-Founder/CTO at Speakbox
π€ Software Engineer
πΈ Amateur musician
Techstars Boston Alumni W21
Thanks! Each environments has itβs own database, storage etc... I use environment variables in my Gitlab pipelines to build the app with the right environment before deploying to Firebase. I have planned another post covering how I use Gitlab to deploy to Firebase, stay tuned!
π¦ Writing about developer experience, leadership, and mental health
π» Co-Founder/CTO at Speakbox
π€ Software Engineer
πΈ Amateur musician
Techstars Boston Alumni W21
Nice post!
I started down the path of creating a staging project for one of my apps, but this was right when multiple sites were introduced to hosting and I saw in the docs that's the suggested way of doing this. I think the biggest obstacle I had was getting the database connection right when swapping back and forth between environments. I'll have to go back and see how I did that. I imagine you avoid that completely with this approach.
Thanks! Each environments has itβs own database, storage etc... I use environment variables in my Gitlab pipelines to build the app with the right environment before deploying to Firebase. I have planned another post covering how I use Gitlab to deploy to Firebase, stay tuned!
Nice, I do something similar Gitlab to build and package but Octopus Deploy to deploy. Also got a blog in the making on the second part.
Nice! Let me know when your post is ready, Iβd love to read it!