ismism/cli/remote/deploy.zsh

23 lines
589 B
Bash
Raw Normal View History

2023-03-21 12:37:20 +08:00
source .zshrc
2022-11-29 14:56:49 +08:00
rm -rf ismism/cli
2023-03-16 18:32:47 +08:00
rm -rf ismism/ui/index.html
2022-12-09 12:58:58 +08:00
rm -rf ismism/dbimport
2022-11-29 14:56:49 +08:00
2022-11-29 16:24:20 +08:00
sleep 1
2022-11-29 15:05:54 +08:00
unzip -o ismism.zip -d ismism
2022-11-29 14:56:49 +08:00
2022-12-05 14:59:02 +08:00
mkdir -p ismism-old
mv ismism.zip "ismism-old/ismism-$(date +%Y%m%d-%H%M).zip"
2023-03-21 12:37:20 +08:00
cd ismism
curl http://localhost:728/quit
2023-03-29 10:30:40 +08:00
curl http://localhost:729/quit
nohup deno run --allow-net --allow-read cli/ser.js 728 > log/ismism728.log &
nohup deno run --allow-net --allow-read cli/ser.js 729 > log/ismism729.log &
2023-03-21 12:37:20 +08:00
2023-03-29 10:30:40 +08:00
nginx -sreopen;
tail -n 10 log/{access,error}.log log/ismism{728,729}.log
2023-03-21 12:37:20 +08:00
pgrep -lf nginx; pgrep -lf mongo; pgrep -lf "deno run"
2023-03-21 13:09:54 +08:00
echo "\nismism released\n"