redmine git integration - shenliuyang/development GitHub Wiki

Remine集成git版本库

  • 确保你已经安装 BitNami-Redmine 安装好的redmine包含大部分插件,无需再手动安装插件.
  • 创建Git仓库文件夹/etc/git/repositories 并把拥有者改成redmine
  • 导出git仓库 cd /etc/git/repositories && git clone -b dev ssh://[email protected]:port/xxx.git xxx.git
  • 创建自动更新文件 vi /etc/git/repositories/update.sh
for file in /etc/git/repositories/*; do
   if [ -d $file ]; then
      cd $file;  git pull 
   fi
done
你安装redmine的路径/script/rails runner "Repository.fetch_changesets" -e production
  • 添加调度任务(系统每五分钟更新) vi /etc/cron.d/sync_git_repos
*/5 * * * * redmine cd /etc/git/repositories && sh ./update.sh
  • 在redmine项目版本库中新建版本并关联 /etc/git/repositories/xxx.git/.git
⚠️ **GitHub.com Fallback** ⚠️