wiseflow/weixin_mp/run_weixin.sh

18 lines
422 B
Bash
Raw Normal View History

2025-01-12 16:22:37 +08:00
#!/bin/bash
2025-01-14 20:39:28 +08:00
set -o allexport
source ../core/.env
set +o allexport
2025-01-12 16:22:37 +08:00
2025-01-14 20:39:28 +08:00
if ! pgrep -x "pocketbase" > /dev/null; then
if ! netstat -tuln | grep ":8090" > /dev/null && ! lsof -i :8090 > /dev/null; then
echo "Starting PocketBase..."
../pb/pocketbase serve --http=127.0.0.1:8090 &
else
echo "Port 8090 is already in use."
fi
else
echo "PocketBase is already running."
fi
python __init__.py