From fa75c1b08dd954593b1d64271d77a326aed994ee Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 23 Sep 2020 19:04:52 +0900 Subject: [PATCH] Move backend restart command from upgrade command into its own command --- production/mempool-restart-all | 5 +++++ production/mempool-upgrade-all | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 production/mempool-restart-all diff --git a/production/mempool-restart-all b/production/mempool-restart-all new file mode 100644 index 000000000..395ddbf41 --- /dev/null +++ b/production/mempool-restart-all @@ -0,0 +1,5 @@ +#!/usr/bin/env zsh + +ps uaxw|grep 'dist/index'|grep -v grep|awk '{print $2}'|xargs -n 1 kill + +exit 0 diff --git a/production/mempool-upgrade-all b/production/mempool-upgrade-all index 9f8e0eb2c..d6a20ffc9 100755 --- a/production/mempool-upgrade-all +++ b/production/mempool-upgrade-all @@ -36,8 +36,6 @@ do npm run build done -ps uaxw|grep 'dist/index'|grep -v grep|awk '{print $2}'|xargs -n 1 kill - hostname=$(hostname) keybase chat send --channel dev mempool "${hostname} updated to ${hash}"