fix readme

This commit is contained in:
2019-03-03 12:23:25 +07:00
parent 183bb16395
commit 2a2e6b2b0b

View File

@@ -15,16 +15,18 @@ yarn install
### Importing data to firestore ### Importing data to firestore
To achieve this goal we use [node-firestore-import-export library](https://www.npmjs.com/package/node-firestore-import-export). To achieve this goal we use [node-firestore-import-export library](https://www.npmjs.com/package/node-firestore-import-export).
1. Create `docker-compose.override.yml` and add this content to it 1. Create `docker-compose.override.yml` and add this content to it
``` ```
version: '3' version: '3'
services: services:
app: app:
volumes: volumes:
- ~/path/to/firebase/credentials.json:/var/www/credentials.json - /path/to/firebase/credentials.json:/var/www/credentials.json
environment: environment:
- GOOGLE_APPLICATION_CREDENTIALS=/var/www/cred.json - GOOGLE_APPLICATION_CREDENTIALS=/var/www/cred.json
``` ```
1. Run `docker-compose exec app firestore-import --yes --backupFile /var/www/vue/data/back-up.json` 1. Run `docker-compose exec app firestore-import --yes --backupFile /var/www/vue/data/back-up.json`
### Compiles and hot-reloads for development ### Compiles and hot-reloads for development