-
Notifications
You must be signed in to change notification settings - Fork 1
/
publishWebsite.sh
executable file
·26 lines (23 loc) · 1.36 KB
/
publishWebsite.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
#!/bin/sh
./stopMSE.sh
# Publish to https://worldscriptsexplorer.page
cd editorClient
cp ./src/assets/environments/sva_config_prod.json ./src/assets/environments/sva_config.json && ng build --configuration production --build-optimizer && firebase deploy --project worldscriptsexplorer
# Google Tag G-QSCLMX9T5B
# Copy all the source content over
cp -r ./src ./../editorClientCalculator/
#cp ./angular.json ./../editorClientCalculator/angular.json
#sed 's/"buildOptimizer": false/"buildOptimizer": true/g' ./../editorClientCalculator/angular.json > ./../editorClientCalculator/angular2.json
#sed 's/"optimization": false/"optimization": true/g' ./../editorClientCalculator/angular2.json > ./../editorClientCalculator/angular.json
#rm -rf ./../editorClientCalculator/angular2.json
cd ../editorClientCalculator/src
# Replace Tags and URLs
sed 's/QSCLMX9T5B/J8VB632PHZ/g' index.html > index2.html
sed 's/worldscriptsexplorer/worldscriptscalculator/g' index2.html > index.html
sed 's/worldscriptscalculator.page/worldscriptscalculator.app/g' index.html > index2.html
cp index2.html index.html
rm -rf index2.html
cd ..
# Publish to https://worldscriptscalculator.app
cp ./src/assets/environments/sva_config_calc.json ./src/assets/environments/sva_config.json && ng build --configuration production --build-optimizer && firebase deploy --project worldscriptscalculator
# Google Tag G-J8VB632PHZ