Skip to content

Commit cd50852

Browse files
manually setting alias
1 parent c8ba604 commit cd50852

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- image: circleci/node:8.10.0
3939
environment:
4040
STAGE: staging
41-
NOW_ALIAS: https://staging.api.howtographql.now.sh
41+
NOW_ALIAS: https://api-staging.howtographql.now.sh
4242
working_directory: ~/repo
4343
steps:
4444
steps:

.scripts/deploy-now.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ ALIAS=$NOW_ALIAS
1111

1212
export PATH="./node_modules/.bin:$PATH"
1313
# 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")
1515
# URL=$(now --target $STAGE -e STAGE=$STAGE -e ENGINE_TAG=${CIRCLE_BRANCH:-staging} --token "$NOW_TOKEN" --scope $TEAM)
1616
# 2. Alias
17-
# now alias set "$URL" "$ALIAS" --token "$NOW_TOKEN" --scope $TEAM
17+
now alias set "$URL" "$ALIAS" --token "$NOW_TOKEN" --scope $TEAM
1818
# 3. Purge old services
1919
now remove $PROJECT --yes --safe --token "$NOW_TOKEN" --scope $TEAM || true
2020

.scripts/deploy.sh

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# bash ./.scripts/generateEnvFile.sh
21
bash ./.scripts/deploy-now.sh

.scripts/generateEnvFile.sh

-7
This file was deleted.

0 commit comments

Comments
 (0)