Skip to content

Commit

Permalink
### 5.0.72-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Feb 19, 2024
1 parent 0488842 commit 9a4dace
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions deploy_amazon_prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ version=`node -e 'console.log(require("./package.json").version)'`
echo "version $version"

# --build-optimizer=false if localstorage is disabled (webview) appears https://github.com/firebase/angularfire/issues/970
ng build --configuration="prod" --aot=true --build-optimizer=true --vendor-chunk=true
##--base-href='./v5/' --output-hashing none

### SET HASHING : START ###
cp ./src/launch_template.js ./dist/launch.js
node ./src/build_launch.js
### SET HASHING : END ###
ng build --configuration="prod" --aot=true --base-href --output-hashing none --build-optimizer=true --vendor-chunk=true

#### FIREBASE #####
# cd dist
Expand All @@ -18,13 +12,12 @@ node ./src/build_launch.js
# aws s3 sync . s3://tiledesk-widget/v5/ --cache-control max-age=300
# cd ..


# #### MQTT #####
cd dist
# aws s3 sync . s3://tiledesk-widget/v5/latest/
aws s3 sync . s3://tiledesk-widget/v6/$version/ --cache-control max-age=86400 --exclude='launch.js' #8days
aws s3 sync . s3://tiledesk-widget/v6/$version/ --cache-control "no-store,no-cache,private" --exclude='*' --include='launch.js'
aws s3 sync . s3://tiledesk-widget/v6/ --cache-control max-age=86400 --exclude='launch.js' #8days
aws s3 sync . s3://tiledesk-widget/v6/ --cache-control "no-store,no-cache,private" --exclude='*' --include='launch.js'
aws s3 sync . s3://tiledesk-widget/v6/$version/ --cache-control max-age=300
aws s3 sync . s3://tiledesk-widget/v6/ --cache-control max-age=300
cd ..

aws cloudfront create-invalidation --distribution-id E3EJDWEHY08CZZ --paths "/*"
Expand Down

0 comments on commit 9a4dace

Please sign in to comment.