zj2092 发表于 2018-9-19 11:56:18

gitlab 2.2版本升级到2.9-ppabc博客

  第一步 关闭服务
/etc/init.d/gitlab stop第二部 更新代码cd /home/gitlab/gitlab # Get latest codesudo -u gitlab git pull origin stable # Update rubygemssudo -u gitlab gem update --system # We changed config format so replace with new default and editsudo -u gitlab cp config/gitlab.yml.example config/gitlab.yml# Install gemssudo -u gitlab bundle install --without development test # Migrate dbsudo -u gitlab bundle exec rake db:migrate RAILS_ENV=production # update gitolite hookssudo cp ./lib/hooks/post-receive /home/git/share/gitolite/hooks/common/post-receivesudo chown git:git /home/git/share/gitolite/hooks/common/post-receive # Enable automergesudo -u gitlab bundle exec rake gitlab:app:enable_automerge RAILS_ENV=production # Check APP Statussudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production 第三步 启动服务/etc/init.d/gitlab start
页: [1]
查看完整版本: gitlab 2.2版本升级到2.9-ppabc博客