Skip to main content

Environments & Branches

This page documents Pivot's three environments: Development, Staging, and Production. Each environment has its own Firebase project, branch, and deployment URLs.

Environment Overview

EnvironmentFirebase ProjectBranchFirebase Alias
Developmentpivot-dev-59310developmentdefault
Stagingpivot-not-production-projectmaindefault
Productionpivot-incproductionproduction

URLs by Environment

Development

PurposeURL
Web Apphttps://pivot-dev-59310.web.app/signin
Stats Dashboardhttps://pivot-dev-59310.web.app/stats
Firebase Consolehttps://console.firebase.google.com/project/pivot-dev-59310

Staging

PurposeURL
Web Apphttps://pivot-not-production-project.web.app/signin
Stats Dashboardhttps://pivot-not-production-project.web.app/stats
Firebase Consolehttps://console.firebase.google.com/project/pivot-not-production-project

Production

PurposeURL
Web Apphttps://the.pivotapp.ca/signin
Stats Dashboardhttps://the.pivotapp.ca/stats
Firebase Consolehttps://console.firebase.google.com/project/pivot-inc

Branch Strategy

development (default) → main (staging) → production

Development Branch (development)

  • Default branch for all new work
  • Feature branches are created from development
  • Pull requests target development first
  • Deploys automatically to pivot-dev-59310

Main Branch (main)

  • Staging branch for QA and testing
  • Changes merged from development after initial testing
  • Deploys automatically to pivot-not-production-project
  • Used for final validation before production

Production Branch (production)

  • Production branch - customer-facing
  • Changes merged from main after staging validation
  • Deploys automatically to pivot-inc via CI/CD

Stats Dashboard

The Stats Dashboard is available in all environments:

Features

  • View data across different companies
  • Switch between environments/branches
  • Monitor key metrics and KPIs

For advanced analytics and KPI dashboards, see the pivot-kpi project which provides:

  • Stripe data integration via BigQuery
  • HubSpot sync capabilities
  • Detailed revenue and subscription metrics

CI/CD Pipeline

Each branch has automatic deployment via GitHub Actions:

BranchTriggerTarget ProjectActions
developmentPush/Mergepivot-dev-59310Build, Test, Deploy
mainPush/Mergepivot-not-production-projectBuild, Test, Deploy
productionPush/Mergepivot-incBuild, Test, Deploy

Branch Protection

All protected branches require:

  • 1 code review before merging
  • CI checks to pass (frontend, build-and-test, enforce-coverage)
  • No force pushes allowed
  • Admins can bypass for emergencies

Test Accounts (Dev & Staging)

EmailPassword
yannickfarmer7@gmail.com123456

Invitation code: SfYf8080


Troubleshooting

For common deployment issues and their solutions, see the Deployment Troubleshooting Guide in pivot-devops.

Common issues:

  • Cloud Tasks permission errors - Add roles/cloudtasks.admin to service accounts
  • 1st Gen to 2nd Gen migration - Delete old function before deploying
  • Wrong project targeted - Check firebase use and verify account