use symbolic link for production deployment dir
This commit is contained in:
parent
0a7fefd170
commit
ae2bb7d5e4
|
@ -7,7 +7,7 @@ if [ -z $mode ]; then
|
||||||
exit 1
|
exit 1
|
||||||
elif [ $mode = "main" ]; then
|
elif [ $mode = "main" ]; then
|
||||||
REMOTE="anand"
|
REMOTE="anand"
|
||||||
REMOTE_DIR="/home/lichess"
|
REMOTE_DIR="/home/lichess-deploy"
|
||||||
elif [ $mode = "stage" ]; then
|
elif [ $mode = "stage" ]; then
|
||||||
REMOTE="khiaw"
|
REMOTE="khiaw"
|
||||||
REMOTE_DIR="/home/lichess-stage"
|
REMOTE_DIR="/home/lichess-stage"
|
||||||
|
@ -84,7 +84,8 @@ fi
|
||||||
|
|
||||||
if [ $mode == "main" ]; then
|
if [ $mode == "main" ]; then
|
||||||
lilalog "Restart lichess"
|
lilalog "Restart lichess"
|
||||||
ssh $REMOTE "chown -R lichess:lichess $REMOTE_DIR && service lichess restart"
|
RUN_DIR="/home/lichess"
|
||||||
|
ssh $REMOTE "chown -R lichess:lichess $REMOTE_DIR && rm $RUN_DIR && ln -s $REMOTE_DIR $RUN_DIR && service lichess restart"
|
||||||
fi
|
fi
|
||||||
if [ $mode == "stage" ]; then
|
if [ $mode == "stage" ]; then
|
||||||
lilalog "Restart lichess-stage"
|
lilalog "Restart lichess-stage"
|
||||||
|
|
|
@ -9,7 +9,7 @@ net {
|
||||||
ip = "5.196.91.160"
|
ip = "5.196.91.160"
|
||||||
asset {
|
asset {
|
||||||
domain = ${net.domain}
|
domain = ${net.domain}
|
||||||
version = 904
|
version = 905
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
forcedev = false
|
forcedev = false
|
||||||
|
|
Loading…
Reference in a new issue