From 87916a3307e1430e62ffb0cda2d2722dc955d600 Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 14 May 2015 20:20:59 +0300 Subject: [PATCH] added logs flushing before update --- bin/update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/update.sh b/bin/update.sh index 6454d11..cd74615 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -43,6 +43,10 @@ else fi fi +heading "Flushing logs" +pm2 flush +rm -Rf ~/logs/* + heading "Stopping processes" pm2 kill