File tree 3 files changed +20
-14
lines changed
3 files changed +20
-14
lines changed Original file line number Diff line number Diff line change
1
+ .DS_Store
Original file line number Diff line number Diff line change
1
+ machine :
2
+ node :
3
+ version : 7.5.0
4
+
5
+ deployment :
6
+ production :
7
+ branch : production
8
+ commands :
9
+ - ./deploy-production.sh
10
+ staging :
11
+ branch : master
12
+ commands :
13
+ - ./deploy-staging.sh
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if [ -n "$NOW_DOMAIN" ]
5
5
then
6
6
7
7
echo " Deploying " $NOW_DOMAIN
8
- DEPLOY= $( now --token=$NOW_TOKEN -n $NOW_DOMAIN )
8
+ now --docker -- token=$NOW_TOKEN -n $NOW_DOMAIN
9
9
echo " "
10
10
11
11
else
14
14
15
15
fi
16
16
17
- # Find the ID
18
- if [ -n " $DEPLOY " ]
19
- then
20
-
21
- CURRENTID=$( now --token=$NOW_TOKEN ls $NOW_DOMAIN | awk ' /.*([A-Za-z0-9]{24}).*/ { print $1; }' | head -n 1 )
22
- else
23
-
24
- echo " Deployment did not occur. Something is wrong."
25
- exit
26
-
27
- fi
17
+ CURRENTID=$( now --token=$NOW_TOKEN ls $NOW_DOMAIN | awk ' /.*([A-Za-z0-9]{24}).*/ { print $1; }' | head -n 1 )
28
18
29
19
# Alias the site and remove old aliases
30
20
if [ -n " $CURRENTID " ]
46
36
echo " $NOW_DOMAIN used to be aliased to $OLDALIAS , we should remove that."
47
37
echo " Removing old aliases..."
48
38
now --token=$NOW_TOKEN ls $NOW_DOMAIN | grep -v " $CURRENTID " | awk ' /.*([A-Za-z0-9]{24}).*/ { print $1; }' | xargs -I{} now --token=$NOW_TOKEN -y rm {}
49
-
39
+ exit
50
40
fi
51
41
else
52
42
echo " We can not find a current alias."
43
+ exit
53
44
fi
54
45
else
55
- echo " We cannot find a current ID."
46
+ echo " We cannot find a current ID. Maybe "
47
+ exit
56
48
fi
You can’t perform that action at this time.
0 commit comments