Added cleanup to help rake
This commit is contained in:
parent
68eb394824
commit
1665a06fdd
3 changed files with 60 additions and 19 deletions
20
doc/raketasks/cleanup.md
Normal file
20
doc/raketasks/cleanup.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
### Remove grabage from gitolite config and filesystem. Important! Data loss!
|
||||
|
||||
Remove projects from gitolite config if they dont exist in GitLab database
|
||||
|
||||
```
|
||||
bundle exec rake gitlab:cleanup:config RAILS_ENV=production
|
||||
```
|
||||
|
||||
Remove namespaces(dirs) from /home/git/repositories if they dont exist in GitLab database
|
||||
|
||||
```
|
||||
bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production
|
||||
```
|
||||
|
||||
Remove repositories (global only for now) from /home/git/repositories if they dont exist in GitLab database
|
||||
|
||||
```
|
||||
bundle exec rake gitlab:cleanup:repos RAILS_ENV=production
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue