Skip to content

Firebase

John Horback edited this page Oct 19, 2022 · 2 revisions

Firebase

Firebase production project

If wanting to do an official release, another firebase project needs to be created.

A likely name would be harbor-production

There seems to be no way to duplicate a project, so the steps taken to setup the harbor-dev firebase project are listed below.

When created, the firebase-use command can be used to switch between projects.

firebase use harbor-production

Production deployment

The harbor-production project will need another github action created for deployment.

This should be setup to on push to the master branch to deploy to the harbor-production site.

Steps used for habor-dev

  • Added new project: "harbor-dev"
  • Added new web "app": "harbor"
  • Ran: firebase init
    • Selected Storage, Firestore, and Hosting
    • Selected "harbor-dev" as existing project
    • Error: Haven't setup Firestore
  • Went to harbor-dev project and created a Firestore db in test mode.
    • Selected us-east-1 as location
  • Re-ran firebase init
    • Selected defaults except:
      • Public directory? dist
      • Rewrite urls to /index.html? yes
      • Automatic builds and deploys with Github? yes
      • File dist/index.html already exists. Overwrite? yes
      • Authorized
      • Selected jhorback/harbor as repository
      • Setup workflow to run a build script
      • Setup deploy from live branch "develop"
      • Created storage rules
      • Done

For Authentication

For Tinymce

Resources

Clone this wiki locally