mirror of
https://github.com/kremalicious/blog.git
synced 2025-01-03 18:35:07 +01:00
ping serach engines upon live deployment
This commit is contained in:
parent
d25c164f96
commit
ba09c140c8
@ -6,6 +6,8 @@
|
||||
# AWS_DEFAULT_REGION
|
||||
AWS_S3_BUCKET="kremalicious.com"
|
||||
AWS_S3_BUCKET_BETA="beta.kremalicious.com"
|
||||
SITEMAP_URL="https%3A%2F%2Fkremalicious.com%2Fsitemap.xml"
|
||||
|
||||
#
|
||||
set -e;
|
||||
|
||||
@ -29,6 +31,12 @@ elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] |
|
||||
|
||||
s3sync $AWS_S3_BUCKET
|
||||
|
||||
# ping search engines
|
||||
# returns: HTTP_STATUSCODE URL
|
||||
curl -sL -w "%{http_code} %{url_effective}\\n" \
|
||||
"http://www.google.com/webmasters/tools/ping?sitemap=$SITEMAP_URL" -o /dev/null \
|
||||
"http://www.bing.com/webmaster/ping.aspx?siteMap=$SITEMAP_URL" -o /dev/null
|
||||
|
||||
echo "---------------------------------------------"
|
||||
echo " ✓ done deployment "
|
||||
echo "---------------------------------------------"
|
||||
|
Loading…
Reference in New Issue
Block a user