Created
April 8, 2018 15:55
-
-
Save dvgamerr/627f45d9b48d9f229f2785a58ef0a25f to your computer and use it in GitHub Desktop.
Gitlab Command
This file contains hidden or 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
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