-
Notifications
You must be signed in to change notification settings - Fork 2
/
deploy.sh
executable file
·39 lines (29 loc) · 917 Bytes
/
deploy.sh
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
#!/bin/bash
# Please be sure, that 'adb' command from Android SDK is in your PATH variable
# exit if errors
set -e
BLUE='\033[0;34m'
GREEN='\033[0;32m'
# ---- build Android package ----
echo -e "${GREEN}Preparing Android package...${NC}"
cd frontend/PhotoOrganizer
#chmod +x frontend/PhotoOrganizer/gradlew
./gradlew assembleDebug
cd ..
cd ..
echo -e "${NC}The APK file can be found at ./app/build/outputs/apk/depug/app-depug.apk${NC}"
# ---- Deploying cloud functions ----
echo -e "${GREEN}---- Deploying cloud functions ----${GREEN}"
cd firebase-functions
firebase login
firebase deploy
cd ..
# ---- Deploying app ----
echo -e "${GREEN}---- Deploying app ---- ${GREEN}"
cd backend
gcloud config set project mcc-fall-2017-g12
gcloud app deploy
#---- Deploying cronjobs ----
echo -e "${GREEN}---- Deploying cronjobs ----${GREEN}"
gcloud app deploy cron.yaml
echo -e "${BLUE}---- All done! ----${BLUE}"