Added cleanup to help rake
This commit is contained in:
parent
68eb394824
commit
1665a06fdd
3 changed files with 60 additions and 19 deletions
|
@ -9,31 +9,41 @@
|
||||||
%br
|
%br
|
||||||
Fast, secure and stable solution based on Ruby on Rails & Gitolite.
|
Fast, secure and stable solution based on Ruby on Rails & Gitolite.
|
||||||
|
|
||||||
%hr
|
%br
|
||||||
|
|
||||||
%h3 Help
|
.row
|
||||||
|
.span6
|
||||||
|
.ui-box
|
||||||
|
.title
|
||||||
|
%h5 Help
|
||||||
|
%ul.well-list
|
||||||
|
%li
|
||||||
|
%span= link_to "Workflow", help_workflow_path
|
||||||
|
|
||||||
%ol
|
%li
|
||||||
%li
|
%span= link_to "Permissions", help_permissions_path
|
||||||
%h5= link_to "Workflow", help_workflow_path
|
|
||||||
|
|
||||||
%li
|
%li
|
||||||
%h5= link_to "Permissions", help_permissions_path
|
%span= link_to "Web Hooks", help_web_hooks_path
|
||||||
|
|
||||||
%li
|
%li
|
||||||
%h5= link_to "Web Hooks", help_web_hooks_path
|
%span= link_to "API", help_api_path
|
||||||
|
|
||||||
%li
|
%li
|
||||||
%h5= link_to "System Hooks", help_system_hooks_path
|
%span= link_to "GitLab Markdown", help_markdown_path
|
||||||
|
|
||||||
%li
|
%li
|
||||||
%h5= link_to "API", help_api_path
|
%span= link_to "SSH keys", help_ssh_path
|
||||||
|
|
||||||
%li
|
.span6
|
||||||
%h5= link_to "GitLab Markdown", help_markdown_path
|
.ui-box
|
||||||
|
.title
|
||||||
|
%h5 Admin Guide
|
||||||
|
%ul.well-list
|
||||||
|
|
||||||
%li
|
%li
|
||||||
%h5= link_to "SSH keys", help_ssh_path
|
%span= link_to "GitLab Rake Tasks", help_raketasks_path
|
||||||
|
|
||||||
|
%li
|
||||||
|
%span= link_to "System Hooks", help_system_hooks_path
|
||||||
|
|
||||||
%li
|
|
||||||
%h5= link_to "GitLab Rake Tasks", help_raketasks_path
|
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
= link_to "User Management", "#user_management", 'data-toggle' => 'tab'
|
= link_to "User Management", "#user_management", 'data-toggle' => 'tab'
|
||||||
%li
|
%li
|
||||||
= link_to "Backup & Restore", "#backup_restore", 'data-toggle' => 'tab'
|
= link_to "Backup & Restore", "#backup_restore", 'data-toggle' => 'tab'
|
||||||
|
%li
|
||||||
|
= link_to "Cleanup", "#cleanup", 'data-toggle' => 'tab'
|
||||||
|
|
||||||
.tab-content
|
.tab-content
|
||||||
.tab-pane.active#features
|
.tab-pane.active#features
|
||||||
|
@ -45,6 +47,15 @@
|
||||||
= preserve do
|
= preserve do
|
||||||
= markdown File.read(Rails.root.join("doc", "raketasks", "user_management.md"))
|
= markdown File.read(Rails.root.join("doc", "raketasks", "user_management.md"))
|
||||||
|
|
||||||
|
.tab-pane#cleanup
|
||||||
|
.file_holder
|
||||||
|
.file_title
|
||||||
|
%i.icon-file
|
||||||
|
Cleanup
|
||||||
|
.file_content.wiki
|
||||||
|
= preserve do
|
||||||
|
= markdown File.read(Rails.root.join("doc", "raketasks", "cleanup.md"))
|
||||||
|
|
||||||
.tab-pane#backup_restore
|
.tab-pane#backup_restore
|
||||||
.file_holder
|
.file_holder
|
||||||
.file_title
|
.file_title
|
||||||
|
|
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…
Reference in a new issue