Skip to content

Commit 504ac4a

Browse files
authored
Merge pull request #1161 from appirio-tech/dev
Merge in recent discussion changes
2 parents 261a743 + a2bff81 commit 504ac4a

File tree

13 files changed

+112
-11632
lines changed

13 files changed

+112
-11632
lines changed

circle.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
machine:
22
node:
3-
version: 5.5.0
3+
version: 6.11.2
44
environment:
55
CXX: g++-4.8
66

@@ -23,6 +23,11 @@ deployment:
2323
owner: appirio-tech
2424
commands:
2525
- ./deploy.sh DEV
26+
test:
27+
branch: [qa]
28+
owner: appirio-tech
29+
commands:
30+
- ./deploy.sh TEST01
2631
qa:
2732
branch: qa
2833
owner: appirio-tech

deploy.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ deploy_s3bucket() {
2121
cat dist/app.2e9868372e0e2992d5d2.css
2222
#aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control private,no-store,no-cache,must-revalidate,max-age=0
2323
#result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control private,no-store,no-cache,must-revalidate,max-age=0`
24-
aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*.txt" --exclude "*.js" --exclude "*.map" --exclude "*.css"
25-
result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*.txt" --exclude "*.js" --exclude "*.map" --exclude "*.css"`
24+
aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*.txt" --exclude "*.js" --exclude "*.css"
25+
result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*.txt" --exclude "*.js" --exclude "*.css"`
2626
if [ $? -eq 0 ]; then
2727
#echo $result
28-
echo "All html, font, image and media files are Deployed without gzip encoding!"
28+
echo "All html, font, image, map and media files are Deployed without gzip encoding!"
2929
else
3030
echo "Deployment Failed - $result"
3131
exit 1
3232
fi
3333
#result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control private,no-store,no-cache,must-revalidate,max-age=0`
34-
aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*" --include "*.txt" --include "*.js" --include "*.map" --include "*.css" --content-encoding gzip
35-
result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*" --include "*.txt" --include "*.js" --include "*.map" --include "*.css" --content-encoding gzip`
34+
aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*" --include "*.txt" --include "*.js" --include "*.css" --content-encoding gzip
35+
result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude "*" --include "*.txt" --include "*.js" --include "*.css" --content-encoding gzip`
3636
if [ $? -eq 0 ]; then
3737
#echo $result
38-
echo "All css, js, and map files are Deployed! with gzip"
38+
echo "All txt, css, and js files are Deployed! with gzip"
3939
else
4040
echo "Deployment Failed - $result"
4141
exit 1

npm-shrinkwrap.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)