Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 837 Bytes

Emulators.md

File metadata and controls

45 lines (30 loc) · 837 Bytes

Home | Emulators | Seeds & Migrations | Deployment | Test Runners | Known Issues

Firebase Emulators

Login to GCP and set project:

gcloud auth login
gcloud config set project codee-club

Get Firestore Backups

Save emulator state as a backup:

yarn emu --export-on-exit=./backups/MY_BACKUP

Download production backups:

cd admin
yarn backup-get --mode=production

Run Emulator with Backups

Run emulator with backup picker:

yarn emu-imp

Run emulator with last backup (no picker):

yarn emu --import backups

Import AND export to persist state between sessions (assumes MY_BACKUP is active):

yarn emu --import backups --export-on-exit="./backups/MY_BACKUP"