Backend of Wyly on Firebase.
- docker
- firebase CLI
- define environment variable
WYLY_APP_FIREBASE_TOKEN_XXX
- get firebase token by
firebase login:ci
- for dev:
firebase use develop
before get token - for stage:
firebase use stage
before get token
- for dev:
- set token to environment variable
- for dev:
export WYLY_APP_FIREBASE_TOKEN_DEV=1/xxxxxxxxx
- for stage:
export WYLY_APP_FIREBASE_TOKEN_STAGE=1/xxxxxxxxx
- for dev:
- get firebase token by
- execute
docker-compose -f ./deploy-xxx-compose.yml run deploy
- 1st time, use
docker-compose -f ./deploy-xxx-compose.yml build
for building docker
- 1st time, use
- execute
docker-compose -f ./deploy-xxx-compose.yml run deploy sh -c 'firebase firestore:indexes --project $FIREBASE_PROJECT'>firestore.indexes.json