From 39655bb8c4145596e9661e1ff26d43e20c9fbe6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=93=B8=E6=B8=8A?= Date: Tue, 19 May 2026 18:58:22 +0800 Subject: [PATCH] =?UTF-8?q?Notion=20OAuth=20=E9=85=8D=E7=BD=AE=E5=AE=8C?= =?UTF-8?q?=E6=88=90=20+=20=E5=90=AF=E5=8A=A8=E8=84=9A=E6=9C=AC=20+=20.env?= =?UTF-8?q?=20gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + notion/start.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 notion/start.sh 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"