-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
43 lines (29 loc) · 908 Bytes
/
Copy pathmakefile
File metadata and controls
43 lines (29 loc) · 908 Bytes
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
41
42
43
clean:
@npm uninstall
install-npm:
@npm3 install --unsafe-perm
build:
@npm run build
backup-data:
mongodump --db test -o ./data
backup-content:
git add .
git commit -m 'Added data' &> /dev/null
git push https://github.com/jonreading81/vegan-recipes.git
backup-all: backup-data backup-content
restore-data:
mongorestore --db test ./data/test
deploy:
tar -cvf recipes.tar ./
aws s3 cp s3://vegan-recipe-deployments/recipes.tar s3://vegan-recipe-deployments/recipes.rollback.tar
aws s3 cp recipes.tar s3://vegan-recipe-deployments
get-google-creds:
aws s3 cp s3://vegan-recipe-deployments/creds/google.json ./api/data/google.json
retrieve-deployment:
aws s3 cp s3://vegan-recipe-deployments/recipes.tar ../recipes.tar
install: install-npm restore-data
get-latest:
git pull;
install-latest: get-latest install
deploy-latest: install-latest get-google-creds deploy
.PHONY: clean