🎉 Smithery is now a part of Arcade.dev! Read more in our announcement here
将当前分支部署到测试环境。当用户要求部署、发布到测试或在 staging 环境测试时使用
执行部署前,必须验证:
当前分支所有变更已提交
git status
所有测试通过
npm test
代码已推送到远程仓库
git push
构建生产版本
npm run build:staging
运行部署脚本
./scripts/deploy-staging.sh
等待部署完成
验证部署
curl -f https://staging.example.com/health
报告部署结果
如果部署失败:
.logs/deploy-staging-{timestamp}.log
./scripts/rollback-staging.sh
部署成功后,提醒用户验证: