mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: 修复多个部署和管理脚本问题
- 修复workflow中web-dist分支推送node_modules的问题 - 添加.gitignore文件排除node_modules - 使用git add --all -- ':\!node_modules'命令排除node_modules目录 - 修复scripts/manage.sh脚本问题 - 移除软链创建时的覆盖询问,默认使用代码中的最新版本 - 安装时自动给scripts/manage.sh添加执行权限 - 创建软链时确保目标脚本有执行权限 - 修复CentOS 9系统上服务启动失败的问题 - 改进systemd服务配置,添加环境变量和日志目录创建 - 添加systemctl daemon-reload确保配置生效 - 增加启动状态检查和失败时的npm回退机制 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
12
.github/workflows/auto-release-pipeline.yml
vendored
12
.github/workflows/auto-release-pipeline.yml
vendored
@@ -194,8 +194,16 @@ jobs:
|
||||
Build Date: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
|
||||
EOF
|
||||
|
||||
# 提交并推送
|
||||
git add -A
|
||||
# 创建 .gitignore 文件以排除 node_modules
|
||||
cat > .gitignore << EOF
|
||||
node_modules/
|
||||
*.log
|
||||
.DS_Store
|
||||
.env
|
||||
EOF
|
||||
|
||||
# 只添加必要的文件,排除 node_modules
|
||||
git add --all -- ':!node_modules'
|
||||
git commit -m "chore: update frontend build for v${{ steps.next_version.outputs.new_version }} [skip ci]"
|
||||
git push origin web-dist --force
|
||||
|
||||
|
||||
Reference in New Issue
Block a user