chore: fix travis deploy script (#768)

This commit is contained in:
Nolan Lawson 2018-12-08 18:07:50 -08:00 committed by GitHub
parent 8eb30d02e9
commit 481a567807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ set -x
PATH="$PATH:./node_modules/.bin"
# set up robots.txt
if [[ "$DEPLOY_TYPE" == "prod" ]]; then
if [[ "$DEPLOY_TYPE" == "dev" ]]; then
printf 'User-agent: *\nDisallow: /' > assets/robots.txt
else
rm -f assets/robots.txt
@ -19,7 +19,7 @@ if [[ ! -z "$NOW_TOKEN" ]]; then
fi
# launch
$NOW_COMMAND -e SAPPER_TIMESTAMP=$(date +%s%3N)
URL=$($NOW_COMMAND -e SAPPER_TIMESTAMP=$(date +%s%3N))
# fixes issues with now being unavailable immediately
sleep 60
@ -32,7 +32,7 @@ if [[ "$DEPLOY_TYPE" == "prod" ]]; then
fi
# alias
$NOW_COMMAND alias "$NOW_ALIAS"
$NOW_COMMAND alias "$NOW_ALIAS" "$URL"
# cleanup
$NOW_COMMAND rm pinafore --safe --yes