forked from Tiledesk/tiledesk-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_prod.sh
executable file
·34 lines (24 loc) · 1.16 KB
/
deploy_prod.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
# npm version patch
# version=`node -e 'console.log(require("./package.json").version)'`
# echo "version $version"
# if [ "$version" != "" ]; then
# git tag -a "v$version" -m "`git log -1 --format=%s`"
# echo "Created a new tag, v$version"
# git push --tags
# npm publish
# fi
# ng build --prod --base-href ./
node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod --output-path=dist --base-href ./
cd dist
# aws s3 sync . s3://tiledesk-dashboard/dashboard/
# aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
# echo new version deployed on s3://tiledesk-dashboard/dashboard/
# echo available on https://support.tiledesk.com/dashboard/index.html
####### tiledesk V2
# aws s3 sync . s3://tiledesk-console/v2/dashboard/
# echo new version deployed on s3://tiledesk-console/v2/dashboard/
# echo available on https://console.tiledesk.com/v2/dashboard/index.html
####### tiledesk V2 in version subfolder
aws s3 sync . s3://tiledesk-console/v2/dashboard/2.2.21/
echo new version deployed on s3://tiledesk-console/v2/dashboard/2.2.21/
echo available on https://console.tiledesk.com/v2/dashboard/2.2.21/index.html