第一步 关闭服务
sudo -u gitlab git pull origin stable
sudo -u gitlab bundle install --without development test
sudo -u gitlab bundle exec rake db:migrate RAILS_ENV=production
sudo cp ./lib/hooks/post-receive /home/git/share/gitolite/hooks/common/post-receive
sudo chown git:git /home/git/share/gitolite/hooks/common/post-receive
sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production
本文转自 ppabc 51CTO博客,原文链接:http://blog.51cto.com/ppabc/999726