3.0 KiB
Installing your own instance
Requirements
- A Google Firebase project
- A Firebase Web App
- FireBase Hosting enabled
- Authentication with the Sign-in providers Email/Password enabled.
- Cloud Firestore
- Realtime Database
- Firebase CLI tools](https://firebase.google.com/docs/cli) locally
- Create an application](https://console.cloud.google.com/appengine/start/create)
- Your project must be on the Blaze pay as you go pricing plan
- Configure
cors.jsonon the storage bucket](https://cloud.google.com/storage/docs/configuring-cors) to support your deployed origin. See: functions/src/config/cors.md
Deploying:
firebase use <my-new-project-id>
firebase deploy
Troubleshooting:
-
Error: Can't determine Firebase Database URLIf you see this message it is likely you skipped adding the Realtime Database. Easily done! -
The caller does not have permissionThis occurs more commonly when deploying from a CI environment, and usually signifies additional permissions are required for the service account that is used for deployment. You can view the service account details from the GCP Logs Explorer, filtering by severity and expanding to see more information.Examples of previously noted permissions required can be found in Deployment via CircleCI and Firestore DB Backup
Community Platform Maintainers
We deploy to our instances directly from the default branch of the git repository.
You will need to set up a CircleCI context for each target environment. This context should contain the following variables:
FIREBASE_TOKENGOOGLE_APPLICATION_CREDENTIALS_JSONVITE_APP_BRANCHVITE_APP_FIREBASE_API_KEYVITE_APP_FIREBASE_AUTH_DOMAINVITE_APP_FIREBASE_DATABASE_URLVITE_APP_FIREBASE_MESSAGING_SENDER_IDVITE_APP_FIREBASE_PROJECT_IDVITE_APP_FIREBASE_STORAGE_BUCKETVITE_APP_GA_TRACKING_IDVITE_APP_PLATFORM_THEMEVITE_APP_CDN_URL-https://cdn-url.com- this is the URL to the CDN where the assets are stored. This is used to load the assets from the CDN instead of the local server. It should not include a trailing slash.VITE_APP_PLATFORM_PROFILES- comma separated list of available profiles. UseProfileTypefrom modules/profile/index for guidance here. For example:member,workspaceVITE_APP_SUPPORTED_MODULES– comma separated list of available modules. See/src/modules/index.tsfor the definitions.VITE_APP_API_URL– 'https://api-url.com' - this is the URL to the API service. It should not include a trailing slash.SITE_NAME