Skip to content

Instantly share code, notes, and snippets.

@dvgamerr
Created April 8, 2018 15:55
Show Gist options
  • Save dvgamerr/627f45d9b48d9f229f2785a58ef0a25f to your computer and use it in GitHub Desktop.
Save dvgamerr/627f45d9b48d9f229f2785a58ef0a25f to your computer and use it in GitHub Desktop.
Gitlab Command
sysctl -w vm.max_map_count=262144
sudo chmod 700 /home/git/data/uploads
sudo chmod -R ug+rwX,o-rwx /home/git/data/repositories/
sudo chmod -R ug-s /home/git/data/repositories/
sudo find /home/git/data/repositories/ -type d -print0 | sudo xargs -0 chmod g+s
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production
sudo -u git -H bundle exec rake cache:clear 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