mirror of
https://github.com/discourse/discourse.git
synced 2025-06-18 14:42:32 +08:00
FEATURE: Rake task to export and import category structure
This commit is contained in:
@ -198,7 +198,7 @@ class DiscourseCLI < Thor
|
||||
puts "Starting import from #{filename}..."
|
||||
load_rails
|
||||
load_import_export
|
||||
ImportExport.import_category(filename)
|
||||
ImportExport.import(filename)
|
||||
puts "", "Done", ""
|
||||
end
|
||||
|
||||
@ -218,7 +218,7 @@ class DiscourseCLI < Thor
|
||||
puts "Starting import from #{filename}..."
|
||||
load_rails
|
||||
load_import_export
|
||||
ImportExport.import_topics(filename)
|
||||
ImportExport.import(filename)
|
||||
puts "", "Done", ""
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user