Move backend restart command from upgrade command into its own command

This commit is contained in:
wiz 2020-09-23 19:04:52 +09:00
parent ea0edc41e2
commit fa75c1b08d
No known key found for this signature in database
GPG Key ID: A394E332255A6173
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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}"