Skip to content

Instantly share code, notes, and snippets.

@vxst
Created March 27, 2014 12:00
Show Gist options
  • Save vxst/9806041 to your computer and use it in GitHub Desktop.
Save vxst/9806041 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
sudo service gitlab stop
cd /home/git/gitlab
sudo -u git -H ruby script/upgrade.rb -y
sudo service gitlab start
sudo service nginx restart
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
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