Skip to content
オープンソース・ワークショップ 永原 篤 edited this page Aug 8, 2020 · 30 revisions

NetCommons2 からの移行について

NC2 からエクスポートの実行

$ php artisan command:ExportNc2 all
$ php artisan command:ExportNc2 uploads
$ php artisan command:ExportNc2 categories
$ php artisan command:ExportNc2 users
$ php artisan command:ExportNc2 plugins all
$ php artisan command:ExportNc2 plugins blogs
$ php artisan command:ExportNc2 plugins databases
$ php artisan command:ExportNc2 pages

インポートの実行

$ php artisan command:ImportSite all {redo}
$ php artisan command:ImportSite uploads {redo}
$ php artisan command:ImportSite categories {redo}
$ php artisan command:ImportSite users {redo}
$ php artisan command:ImportSite plugins all {redo}
$ php artisan command:ImportSite plugins blogs {redo}
$ php artisan command:ImportSite plugins databases {redo}
$ php artisan command:ImportSite pages {redo}

説明

エクスポートは ExportNc2 all が基本。NC2 をエクスポートします。
細かな指定は、デバッグ用です。

インポートはImportSite all が基本。
各コマンドの最後に redo をつけることで、データを消してやり直しします。
ページだけやり直したい。という場合は、ImportSite pages redo です。
ページのインポートには、フレーム、固定記事を含みます。

Clone this wiki locally