forked from Tiledesk/tiledesk-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_pre.sh
executable file
·26 lines (23 loc) · 1.22 KB
/
deploy_pre.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
# CURR_VER=$(< current_version.txt)
# NEW_VER=$(($CURR_VER + 1))
# ng build --c=pre --prod --base-href /dashboard/
# cd dist
# sed 's/base href="/base href="\./' index.html > index2.html
# rm index.html
# mv index2.html index.html
# aws s3 sync . s3://tiledesk-dashboard-pre/dashboard/
# cd ..
# echo $NEW_VER > current_version.txt
# echo new version deployed on s3://tiledesk-dashboard-pre/dashboard/
# echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-dashboard-pre/dashboard/index.html
# ng build --prod --c=pre --base-href ./ commento questo dopo errore FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod --c=pre --output-path=dist --base-href ./
cd dist
####### tiledesk
aws s3 sync . s3://tiledesk-dashboard-pre/dashboard/
aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
echo new version deployed on s3://tiledesk-dashboard-pre/dashboard/
echo available on https://support-pre.tiledesk.com/dashboard/index.html
####### demo1
# aws s3 sync . s3://pypestream-dashboard/dashboard/
# aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"