File tree 4 files changed +3
-11
lines changed
4 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 38
38
- image : circleci/node:8.10.0
39
39
environment :
40
40
STAGE : staging
41
- NOW_ALIAS : https://staging. api.howtographql.now.sh
41
+ NOW_ALIAS : https://api-staging .howtographql.now.sh
42
42
working_directory : ~/repo
43
43
steps :
44
44
steps :
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ ALIAS=$NOW_ALIAS
11
11
12
12
export PATH=" ./node_modules/.bin:$PATH "
13
13
# 1. Wait for deployment ready
14
- now --target $STAGE -e STAGE=$STAGE --token " $NOW_TOKEN "
14
+ URL= $( now --target $STAGE -e STAGE=$STAGE --token " $NOW_TOKEN " )
15
15
# URL=$(now --target $STAGE -e STAGE=$STAGE -e ENGINE_TAG=${CIRCLE_BRANCH:-staging} --token "$NOW_TOKEN" --scope $TEAM)
16
16
# 2. Alias
17
- # now alias set "$URL" "$ALIAS" --token "$NOW_TOKEN" --scope $TEAM
17
+ now alias set " $URL " " $ALIAS " --token " $NOW_TOKEN " --scope $TEAM
18
18
# 3. Purge old services
19
19
now remove $PROJECT --yes --safe --token " $NOW_TOKEN " --scope $TEAM || true
20
20
Original file line number Diff line number Diff line change 1
- # bash ./.scripts/generateEnvFile.sh
2
1
bash ./.scripts/deploy-now.sh
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments