type
status
date
slug
summary
tags
category
icon
password
NotionNext 部署速查表
基于 Ubuntu 22.04 + 宝塔 + PM2,域名示例:`blog.pathseek.cn`
1. 服务器 & 域名
项目 | 内容 |
系统 | Ubuntu 22.04 |
IP | 8.147.235.84 |
子域名 | `blog.pathseek.cn` → A 记录 → IP |
主域名 | 暂不启用 |
2. 环境安装
3. Notion 凭证
表格复制
步骤 | 位置 |
创建集成 | |
必填字段 | 名称任意 + Redirect URI https://blog.pathseek.cn |
复制 | Client Secret(secret_...) |
授权 | 把集成添加到 Notion 页面 → Read |
4. 代码 & 配置
5. 构建与守护
6. 宝塔配置
表格复制
功能 | 设置 |
添加站点 | blog.pathseek.cn(纯静态) |
反向代理 | 目标 http://127.0.0.1:3000 |
SSL | Let’s Encrypt 一键证书 |
7. 防火墙
表格复制
位置 | 放行端口 |
阿里云安全组 | 3000/TCP |
宝塔安全 | 3000/TCP |
Ubuntu | sudo ufw allow 3000 |
8. 日常维护
表格复制
场景 | 操作 |
新增/修改文章 | 等 10 分钟自动同步 或 pm2 restart notionnext |
改主题/配置 | nano .env.local → npm run build && pm2 restart notionnext |
9. 一键重启脚本(可选)
10. 访问
以上完成即部署成功!
- Author:NotionNext
- URL:http://preview.tangly1024.com/article/25c9b592-5179-80cf-b9fd-e164508c2691
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!






