Commit 1665a06fddf7c51fcf80da74590c613f5c785f47
1 parent
68eb3948
Exists in
master
and in
4 other branches
Added cleanup to help rake
Showing
3 changed files
with
60 additions
and
19 deletions
Show diff stats
app/views/help/index.html.haml
| ... | ... | @@ -9,31 +9,41 @@ |
| 9 | 9 | %br |
| 10 | 10 | Fast, secure and stable solution based on Ruby on Rails & Gitolite. |
| 11 | 11 | |
| 12 | -%hr | |
| 12 | +%br | |
| 13 | + | |
| 14 | +.row | |
| 15 | + .span6 | |
| 16 | + .ui-box | |
| 17 | + .title | |
| 18 | + %h5 Help | |
| 19 | + %ul.well-list | |
| 20 | + %li | |
| 21 | + %span= link_to "Workflow", help_workflow_path | |
| 13 | 22 | |
| 14 | -%h3 Help | |
| 23 | + %li | |
| 24 | + %span= link_to "Permissions", help_permissions_path | |
| 15 | 25 | |
| 16 | -%ol | |
| 17 | - %li | |
| 18 | - %h5= link_to "Workflow", help_workflow_path | |
| 26 | + %li | |
| 27 | + %span= link_to "Web Hooks", help_web_hooks_path | |
| 19 | 28 | |
| 20 | - %li | |
| 21 | - %h5= link_to "Permissions", help_permissions_path | |
| 29 | + %li | |
| 30 | + %span= link_to "API", help_api_path | |
| 22 | 31 | |
| 23 | - %li | |
| 24 | - %h5= link_to "Web Hooks", help_web_hooks_path | |
| 32 | + %li | |
| 33 | + %span= link_to "GitLab Markdown", help_markdown_path | |
| 25 | 34 | |
| 26 | - %li | |
| 27 | - %h5= link_to "System Hooks", help_system_hooks_path | |
| 35 | + %li | |
| 36 | + %span= link_to "SSH keys", help_ssh_path | |
| 28 | 37 | |
| 29 | - %li | |
| 30 | - %h5= link_to "API", help_api_path | |
| 38 | + .span6 | |
| 39 | + .ui-box | |
| 40 | + .title | |
| 41 | + %h5 Admin Guide | |
| 42 | + %ul.well-list | |
| 31 | 43 | |
| 32 | - %li | |
| 33 | - %h5= link_to "GitLab Markdown", help_markdown_path | |
| 44 | + %li | |
| 45 | + %span= link_to "GitLab Rake Tasks", help_raketasks_path | |
| 34 | 46 | |
| 35 | - %li | |
| 36 | - %h5= link_to "SSH keys", help_ssh_path | |
| 47 | + %li | |
| 48 | + %span= link_to "System Hooks", help_system_hooks_path | |
| 37 | 49 | |
| 38 | - %li | |
| 39 | - %h5= link_to "GitLab Rake Tasks", help_raketasks_path | ... | ... |
app/views/help/raketasks.html.haml
| ... | ... | @@ -16,6 +16,8 @@ |
| 16 | 16 | = link_to "User Management", "#user_management", 'data-toggle' => 'tab' |
| 17 | 17 | %li |
| 18 | 18 | = link_to "Backup & Restore", "#backup_restore", 'data-toggle' => 'tab' |
| 19 | + %li | |
| 20 | + = link_to "Cleanup", "#cleanup", 'data-toggle' => 'tab' | |
| 19 | 21 | |
| 20 | 22 | .tab-content |
| 21 | 23 | .tab-pane.active#features |
| ... | ... | @@ -45,6 +47,15 @@ |
| 45 | 47 | = preserve do |
| 46 | 48 | = markdown File.read(Rails.root.join("doc", "raketasks", "user_management.md")) |
| 47 | 49 | |
| 50 | + .tab-pane#cleanup | |
| 51 | + .file_holder | |
| 52 | + .file_title | |
| 53 | + %i.icon-file | |
| 54 | + Cleanup | |
| 55 | + .file_content.wiki | |
| 56 | + = preserve do | |
| 57 | + = markdown File.read(Rails.root.join("doc", "raketasks", "cleanup.md")) | |
| 58 | + | |
| 48 | 59 | .tab-pane#backup_restore |
| 49 | 60 | .file_holder |
| 50 | 61 | .file_title | ... | ... |
| ... | ... | @@ -0,0 +1,20 @@ |
| 1 | +### Remove grabage from gitolite config and filesystem. Important! Data loss! | |
| 2 | + | |
| 3 | +Remove projects from gitolite config if they dont exist in GitLab database | |
| 4 | + | |
| 5 | +``` | |
| 6 | +bundle exec rake gitlab:cleanup:config RAILS_ENV=production | |
| 7 | +``` | |
| 8 | + | |
| 9 | +Remove namespaces(dirs) from /home/git/repositories if they dont exist in GitLab database | |
| 10 | + | |
| 11 | +``` | |
| 12 | +bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production | |
| 13 | +``` | |
| 14 | + | |
| 15 | +Remove repositories (global only for now) from /home/git/repositories if they dont exist in GitLab database | |
| 16 | + | |
| 17 | +``` | |
| 18 | +bundle exec rake gitlab:cleanup:repos RAILS_ENV=production | |
| 19 | +``` | |
| 20 | + | ... | ... |