mirror of
https://github.com/pockethost/pockethost.git
synced 2025-10-14 00:59:25 +00:00
chore: rotate logs and kill orphan pocketbase processes when restarting
This commit is contained in:
parent
606e52e9b6
commit
f59b2ed81e
@ -4,4 +4,7 @@ set -a
|
|||||||
source .env
|
source .env
|
||||||
set +a
|
set +a
|
||||||
|
|
||||||
|
mv packages/daemon/daemon.log packages/daemon/daemon-`date +%s`.log
|
||||||
|
truncate -s 0 packages/daemon/daemon.log
|
||||||
|
pkill -f pocketbase
|
||||||
yarn pm2
|
yarn pm2
|
Loading…
x
Reference in New Issue
Block a user