Skip to content

Instantly share code, notes, and snippets.

@vizv
Created May 13, 2014 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vizv/f654ce49b3f3ce526a22 to your computer and use it in GitHub Desktop.
Save vizv/f654ce49b3f3ce526a22 to your computer and use it in GitHub Desktop.
Update Scripts for GitLab
#!/bin/bash
cd /home/git/gitlab; sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production; \
sudo service gitlab stop; 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:check RAILS_ENV=production
#!/bin/bash
cd /home/git/gitlab-shell; sudo su git -c "git fetch && git checkout $(git tag | tail -n1)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment