-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
41 lines (27 loc) · 898 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SHELL = /bin/bash
all: install login deploy
install:
npm install -g firebase-tools
login:
firebase login
deploy:
firebase deploy
deploy-testing:
firebase deploy --project testing
deploy-hosting:
firebase deploy --only hosting
deploy-hosting-testing:
firebase deploy --only hosting --project testing
deploy-firestore:
firebase deploy --only firestore:rules,firestore:indexes
deploy-firestore-testig:
firebase deploy --only firestore:rules,firestore:indexes --project testing
deploy-functions:
firebase deploy --only functions
deploy-functions-testig:
firebase deploy --only functions --project testing
config-set:
firebase functions:config:set algolia.app_id=$(ALGOLIA_APP_ID) algolia.api_key=$(ALGOLIA_API_KEY)
config-dump:
firebase functions:config:get > functions/.runtimeconfig.json
.PHONY: install login deploy deploy-testing deploy-firestore deploy-firestore-testing