File tree 2 files changed +3
-24
lines changed 2 files changed +3
-24
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,5 @@ deploy:
35
35
detect_encoding : true
36
36
on :
37
37
branch : master
38
+ after_deploy :
39
+ - AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY AWS_SECRET_ACCESS_KEY=$AWS_SECRET_KEY ./.travis/reset_cloudfront_cache.sh
Original file line number Diff line number Diff line change 1
1
# ##############################################################################
2
2
# ## Resets CloudFront cache with boto/cfadmin utility
3
- # ## Run: ./this_script
3
+ # ## Run: ./reset_cloudfront_cache.sh
4
4
# ##############################################################################
5
5
6
6
#
20
20
exit 0
21
21
fi
22
22
23
- #
24
- # Install boto
25
- #
26
- echo -e " \nInstalling boto...\n"
27
- git clone git://github.com/boto/boto.git
28
- cd boto
29
- sudo python setup.py install
30
- cd ../
31
- rm -rf boto
32
-
33
- #
34
- # Set up credentials for boto
35
- #
36
- echo -e " \nSet up boto credentials...\n"
37
- cat > ~ /.boto <
38
- # XNXNXXNNNNXNXN - distribution configured for the Web - in aws amazon cloudfront distributions.
39
- #
40
23
echo -e " \nCloudFront Invalidating...\n"
41
24
cfadmin invalidate XNXNXXNNNNXNXN /yoursite.com
42
25
cfadmin invalidate XNXNXXNNNNXNXN /.yoursite.com
43
26
cfadmin invalidate XNXNXXNNNNXNXN /index.html /static/main.css /static/main.js
44
27
echo -e " \nInvalidating is in progress...\n"
45
28
echo -e " \nYou can check the status on the 'Invalidations' tab here https://console.aws.amazon.com/cloudfront/home?region=your_region#distribution-settings:XNXNXXNNNNXNXN\n"
46
-
47
- #
48
- # Clean up
49
- #
50
- echo -e " \nRemove boto config file\n"
51
- rm ~ /.boto
You can’t perform that action at this time.
0 commit comments