diff --git a/bin/prod/deploy b/bin/prod/deploy index cb353f3f56..9a906936f2 100755 --- a/bin/prod/deploy +++ b/bin/prod/deploy @@ -7,7 +7,7 @@ if [ -z $mode ]; then exit 1 elif [ $mode = "main" ]; then REMOTE="anand" - REMOTE_DIR="/home/lichess" + REMOTE_DIR="/home/lichess-deploy" elif [ $mode = "stage" ]; then REMOTE="khiaw" REMOTE_DIR="/home/lichess-stage" @@ -84,7 +84,8 @@ fi if [ $mode == "main" ]; then 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 if [ $mode == "stage" ]; then lilalog "Restart lichess-stage" diff --git a/conf/base.conf b/conf/base.conf index f3f9888067..81d91c85b8 100644 --- a/conf/base.conf +++ b/conf/base.conf @@ -9,7 +9,7 @@ net { ip = "5.196.91.160" asset { domain = ${net.domain} - version = 904 + version = 905 } } forcedev = false