Commit ab73ba99 authored by Alexander Strachan's avatar Alexander Strachan Committed by Shaun McCann

Resolve "doc update reset a wiki project via a Rails console"

parent 4d470771
...@@ -258,6 +258,22 @@ Project.find_each do |project| ...@@ -258,6 +258,22 @@ Project.find_each do |project|
end end
``` ```
## Wikis
### Recreate
A Projects Wiki can be recreated by
**Note:** This is a destructive operation, the Wiki will be empty
```ruby
p = Project.find_by_full_path('<username-or-group>/<project-name>') ### enter your projects path
GitlabShellWorker.perform_in(0, :remove_repository, p.repository_storage, p.wiki.disk_path) ### deletes the wiki project from the filesystem
p.create_wiki ### creates the wiki project on the filesystem
```
## Imports / Exports ## Imports / Exports
```ruby ```ruby
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment