-
Notifications
You must be signed in to change notification settings - Fork 1
/
Deployment.sh
73 lines (66 loc) · 2.98 KB
/
Deployment.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/sh
### Server-Deploy : Heroku
### Manual Deployment - Remove SSL instances in tasks.js before deployment
cd /Users/yshant/Documents/MSE_server_deploy
cp ./routes/environments/sva_config_prod.json ./routes/environments/sva_config.json
cp ./routes/environments/sva_config_prod.properties ./routes/environments/sva_config.properties
curl https://cli-assets.heroku.com/install.sh | sh # ONLY first time
heroku login # ONLY first time
git init # ONLY first time
heroku git:remote -a worldscriptsexplorer
git add .
git commit -am "*-WSEv1"
git push heroku master
## Currently using Manual Github Integration Deploy : https://dashboard.heroku.com/apps/worldscriptsexplorer/deploy/github
# Python and Pip package setup on Heroku ### ONLY first time
cat /etc/os-release
curl -o get-pip.py https://bootstrap.pypa.io/get-pip.py
python get-pip.py
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/python3-pip_20.0.2-5ubuntu1_all.deb
dpkg -i python3-pip_20.0.2-5ubuntu1_all.deb
apt-get install -f ./python3-pip_20.0.2-5ubuntu1_all.deb
### Client-Deploy - Firebase Deploy https://console.firebase.google.com/u/0/project/worldscriptsexplorer/hosting/sites
cd /Users/yshant/Documents/GitHub/multiscripteditor/editorClient
sudo npm install -g firebase-tools # ONLY first time
firebase login # ONLY first time
firebase init # ONLY first time
firebase deploy # ONLY first time
cp ./src/assets/environments/sva_config_prod.json ./src/assets/environments/sva_config.json && ng build --configuration production --build-optimizer && firebase deploy --project worldscriptsexplorer
cp ./src/assets/environments/sva_config_calc.json ./src/assets/environments/sva_config.json && ng build --configuration production --build-optimizer && firebase deploy --project worldscriptscalculator
### Update Process for Angular
# v11 to v12
ng version
ng update @angular/core@12 @angular/cli@12 --allow-dirty --force
ng update @angular/material@12 --allow-dirty --force
cp ./editorClient ./editorClientCalculator
./publishWebsite.sh
# v12 to v13
ng version
ng update @angular/core@13 @angular/cli@13 --allow-dirty --force
ng update @angular/material@13 --allow-dirty --force
cp ./editorClient ./editorClientCalculator
./publishWebsite.sh
# v13 to v14
ng version
ng update @angular/core@14 @angular/cli@14 --allow-dirty --force
ng update @angular/material@14 --allow-dirty --force
cp ./editorClient ./editorClientCalculator
./publishWebsite.sh
# v14 to v15
ng version
ng update @angular/core@14 @angular/cli@14 --allow-dirty --force
ng update @angular/material@14 --allow-dirty --force
cp ./editorClient ./editorClientCalculator
./publishWebsite.sh
# v15 to v16
ng version
ng update @angular/core@14 @angular/cli@14 --allow-dirty --force
ng update @angular/material@14 --allow-dirty --force
cp ./editorClient ./editorClientCalculator
./publishWebsite.sh
# v16 to v17
ng version
ng update @angular/core@14 @angular/cli@14 --allow-dirty --force
ng update @angular/material@14 --allow-dirty --force
cp ./editorClient ./editorClientCalculator
./publishWebsite.sh