Created
April 24, 2015 08:12
-
-
Save 4lun/6b1b74ed8c0c4f035fa4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /home/git/gitlab; \ | |
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production; \ | |
sudo service gitlab stop; \ | |
if [ -f bin/upgrade.rb ]; then sudo -u git -H ruby bin/upgrade.rb -y; else sudo -u git -H ruby script/upgrade.rb -y; fi; \ | |
cd /home/git/gitlab-shell; \ | |
sudo -u git -H git fetch; \ | |
sudo -u git -H git checkout v`cat /home/git/gitlab/GITLAB_SHELL_VERSION`; \ | |
cd /home/git/gitlab; \ | |
sudo service gitlab start; \ | |
sudo service nginx restart; sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment