diff --git a/.gitignore b/.gitignore index bf89eca..ab7f451 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,4 @@ server/sites/yaoming/index.html.bak.pre-d64 __pycache__/ *.pyc *.pyo +.env diff --git a/notion/start.sh b/notion/start.sh new file mode 100644 index 0000000..68cfd4d --- /dev/null +++ b/notion/start.sh @@ -0,0 +1,8 @@ +#!/bin/bash +source /opt/guanghulab-repo/notion/.env +cd /opt/guanghulab-repo/notion +pkill -f notion-mcp-server.py 2>/dev/null +sleep 1 +nohup python3 notion-mcp-server.py > /tmp/notion-mcp.log 2>&1 & +sleep 2 +echo "Server started on :$NOTION_MCP_PORT"