-
Notifications
You must be signed in to change notification settings - Fork 0
Firebase
John Horback edited this page Oct 19, 2022
·
2 revisions
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-productionThe 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.
- 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
- Selected defaults except:
For Authentication
- Go into console and enable Google Authentication
- Also had to add 127.0.0.1 to Authorized domains for vite to work
For Tinymce
- Add the domain to tinymce https://www.tiny.cloud/tinymce/