mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FEATURE: Rake task to export and import category structure
This commit is contained in:
@ -500,3 +500,11 @@ task "import:create_vbulletin_permalinks" => :environment do
|
||||
|
||||
log "Done!"
|
||||
end
|
||||
|
||||
desc 'Import existing exported file'
|
||||
task 'import:file', [:file_name] => [:environment] do |_, args|
|
||||
require "import_export/import_export"
|
||||
|
||||
ImportExport.import(args[:file_name])
|
||||
puts "", "Done", ""
|
||||
end
|
||||
|
Reference in New Issue
Block a user