Skip to content

Commit

Permalink
remove deploy script FS_WARMUP
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Dec 6, 2018
1 parent a7bd00c commit 54d3819
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/prod/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ if [ $mode = "main" ]; then
sleep 1
fi

# ensure FS cache is ready before booting (slow hard drives)
FS_WARMUP="cat $REMOTE_DIR/lib/* > /dev/null && cat $REMOTE_DIR/bin/lila > /dev/null"

# start dropping packets. Run `bin/prod/iptables-drop 0` on the server to resume normal traffic.
START_DROPPING="$REMOTE_DIR/bin/prod/iptables-drop 0.92"
STOP_DROPPING="sleep 8 && $REMOTE_DIR/bin/prod/iptables-drop 0.8 && sleep 6 && $REMOTE_DIR/bin/prod/iptables-drop 0"
Expand All @@ -114,7 +111,7 @@ STOP_DROPPING="sleep 8 && $REMOTE_DIR/bin/prod/iptables-drop 0.8 && sleep 6 && $
if [ $mode = "main" ]; then
lilalog "Restart lichess"
RUN_DIR="/home/lichess"
SSH_COMMAND="$START_DROPPING && chown -R lichess:lichess $REMOTE_DIR && $FS_WARMUP && rm $RUN_DIR && ln -s $REMOTE_DIR $RUN_DIR && systemctl restart lichess && $STOP_DROPPING"
SSH_COMMAND="$START_DROPPING && chown -R lichess:lichess $REMOTE_DIR && rm $RUN_DIR && ln -s $REMOTE_DIR $RUN_DIR && systemctl restart lichess && $STOP_DROPPING"
echo $SSH_COMMAND
ssh $REMOTE $SSH_COMMAND
fi
Expand Down

0 comments on commit 54d3819

Please sign in to comment.