Commit 1f2fc34 1 parent 3764e1a commit 1f2fc34 Copy full SHA for 1f2fc34
File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ if [ -z $mode ]; then
8
8
elif [ $mode = " main" ]; then
9
9
REMOTE=" clyde"
10
10
REMOTE_DIR=" /home/lichess"
11
+ elif [ $mode = " stage" ]; then
12
+ REMOTE=" khiaw"
13
+ REMOTE_DIR=" /home/lichess-stage"
11
14
elif [ $mode = " salim2" ]; then
12
15
REMOTE=" salim2"
13
16
REMOTE_DIR=" /home/lila"
45
48
46
49
lilalog " Deploy to $mode server $REMOTE :$REMOTE_DIR "
47
50
48
- if [ $mode == " main" ]; then
51
+ if [ $mode == " main" ] || [ $mode == " stage " ] ; then
49
52
bin/prod/compile-client
50
53
fi
51
54
@@ -75,7 +78,7 @@ RSYNC_OPTIONS=" \
75
78
--exclude '.git/' \
76
79
--exclude bin/.translate_version"
77
80
78
- if [ $mode != " main" ]; then
81
+ if [ $mode == " main" ] && [ $mode != " stage " ]; then
79
82
RSYNC_OPTIONS=" $RSYNC_OPTIONS \
80
83
--exclude public" ;
81
84
fi
@@ -95,7 +98,7 @@ if [ $mode == "main" ]; then
95
98
bin/cli-prod deploy post
96
99
fi
97
100
98
- if [ $mode == " main" ]; then
101
+ if [ $mode == " main" ] || [ $mode == " stage " ] ; then
99
102
lilalog " Restart lichess"
100
103
ssh $REMOTE " chown -R lichess:lichess $REMOTE_DIR && service lichess restart"
101
104
fi
You can’t perform that action at this time.
0 commit comments