Site Deployer
Deploy and manage Next.js websites on Netlify from your phone.
Sites
| Site | Domain | Repo |
|---|
| soilrich | soilrichbyjohn.com | ~/soilrich-website |
| synergy |
Synergy salon | ~/synergy-website |
Commands
deploy [site]
Build and deploy a site to Netlify.
Requires explicit user approval before executing.
CODEBLOCK0
Execution steps:
- 1. INLINECODE1
- INLINECODE2
- INLINECODE3
- Log result to Notion "Deploy History" database
deploy status [site]
Check the current deployment status on Netlify.
CODEBLOCK1
Runs netlify status in the site's repo directory.
deploy rollback [site]
Rollback to the previous deployment.
Requires explicit user approval.
CODEBLOCK2
Uses netlify rollback to revert to the previous production deploy.
deploy logs [site]
Show recent deploy logs from Netlify.
CODEBLOCK3
Runs netlify deploy --json | jq '.[-5:]' to show the last 5 deploys.
Approval Gate
All deploy and rollback commands require the user to confirm before executing. The agent must:
- 1. Present a summary of what will be deployed (site name, current branch, latest commit)
- Wait for explicit "yes" or "confirm" response
- Only then execute the deploy
Notion Integration
After each deploy, create an entry in the "Deploy History" database:
- - Deploy: Short description of what was deployed
- Site: soilrich or synergy
- Status: Success, Failed, or Rolled Back
- Timestamp: Current date/time
- CommitHash: Git commit SHA that was deployed
- Notes: Any relevant details
Setup
Requires Netlify CLI authenticated:
CODEBLOCK4
Site Deployer
在手机上通过Netlify部署和管理Next.js网站。
站点
| 站点 | 域名 | 仓库 |
|---|
| soilrich | soilrichbyjohn.com | ~/soilrich-website |
| synergy |
Synergy salon | ~/synergy-website |
命令
deploy [site]
构建并将站点部署到Netlify。
执行前需要用户明确批准。
deploy soilrich
deploy synergy
执行步骤:
- 1. cd ~/[site]-website && git pull
- npm run build
- netlify deploy --prod
- 将结果记录到Notion部署历史数据库
deploy status [site]
检查Netlify上的当前部署状态。
deploy status soilrich
在站点仓库目录中运行netlify status。
deploy rollback [site]
回滚到上一个部署。
需要用户明确批准。
deploy rollback soilrich
使用netlify rollback回滚到上一个生产部署。
deploy logs [site]
显示Netlify最近的部署日志。
deploy logs synergy
运行netlify deploy --json | jq .[-5:]显示最近5次部署。
审批关卡
所有deploy和rollback命令都需要用户在执行前确认。代理必须:
- 1. 呈现将要部署的内容摘要(站点名称、当前分支、最新提交)
- 等待明确的是或确认响应
- 然后才能执行部署
Notion集成
每次部署后,在部署历史数据库中创建一条记录:
- - 部署:部署内容的简短描述
- 站点:soilrich或synergy
- 状态:成功、失败或已回滚
- 时间戳:当前日期/时间
- 提交哈希:已部署的Git提交SHA
- 备注:任何相关细节
设置
需要已认证的Netlify CLI:
bash
npm install -g netlify-cli
netlify login