deploy prod logger before

pull/1757/head
Thibault Duplessis 2016-03-23 12:48:25 +07:00
parent 3b57efc1fc
commit e457c90dda
1 changed files with 2 additions and 2 deletions

View File

@ -73,13 +73,13 @@ echo "rsync complete"
read -n 1 -p "Press [Enter] to complete deployment to $mode server $REMOTE:$REMOTE_DIR"
if [ $mode == "main" ]; then
lilalog "Deploy logger configuration"
rsync -av conf/prod-logger.xml $REMOTE:/etc/lichess.logger.xml
lilalog "Notify users of post deploy"
bin/cli-prod deploy post
fi
if [ $mode == "main" ]; then
lilalog "Deploy logger configuration"
rsync -av conf/prod-logger.xml $REMOTE:/etc/lichess.logger.xml
lilalog "Restart lichess"
ssh $REMOTE "chown -R lichess:lichess $REMOTE_DIR && service lichess restart"
fi