LoginSignup
1
2

More than 5 years have passed since last update.

Wordpress → Ghost のデータ移行

Posted at

WordpressからGhostの移行の方法を書いてみる。

Ghostの立て方は割愛ということで、ここではデータ移行の話を軸に進める。

データ移行はWordpressのプラグインを使う。

このプラグインを使うとjsonファイルができる。これをGhostのデバッグ画面からデータ挿入してあげる。

デバッグ画面:
http://yourghosturl/ghost/debug/

(もしかすると日本語環境だけかもしれないけど)、error: Value in [posts.slug] exceeds maximum length of 150 charactersと怒られることがある。

そのときは、下のScriptを使って解決する。

使い方はこんな感じ。

node slugline_shortner.js <your wordpress data json>

nodeはbrewなりでインストールしましょう。

File was saved to <output file>

と言われるので、この末尾にあるファイルをデバッグ画面から読み込んであげれば終了。

おつかれさまでした。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2