chore: fix travis deploy script (#768)
This commit is contained in:
parent
8eb30d02e9
commit
481a567807
|
@ -6,7 +6,7 @@ set -x
|
||||||
PATH="$PATH:./node_modules/.bin"
|
PATH="$PATH:./node_modules/.bin"
|
||||||
|
|
||||||
# set up robots.txt
|
# set up robots.txt
|
||||||
if [[ "$DEPLOY_TYPE" == "prod" ]]; then
|
if [[ "$DEPLOY_TYPE" == "dev" ]]; then
|
||||||
printf 'User-agent: *\nDisallow: /' > assets/robots.txt
|
printf 'User-agent: *\nDisallow: /' > assets/robots.txt
|
||||||
else
|
else
|
||||||
rm -f assets/robots.txt
|
rm -f assets/robots.txt
|
||||||
|
@ -19,7 +19,7 @@ if [[ ! -z "$NOW_TOKEN" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# launch
|
# 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
|
# fixes issues with now being unavailable immediately
|
||||||
sleep 60
|
sleep 60
|
||||||
|
@ -32,7 +32,7 @@ if [[ "$DEPLOY_TYPE" == "prod" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# alias
|
# alias
|
||||||
$NOW_COMMAND alias "$NOW_ALIAS"
|
$NOW_COMMAND alias "$NOW_ALIAS" "$URL"
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
$NOW_COMMAND rm pinafore --safe --yes
|
$NOW_COMMAND rm pinafore --safe --yes
|
||||||
|
|
Loading…
Reference in a new issue