{"id":1821,"date":"2022-07-22T17:51:14","date_gmt":"2022-07-22T09:51:14","guid":{"rendered":"https:\/\/rogen.us\/failed-to-migrate-from-wordpress-to-ghost-on-heroku\/"},"modified":"2022-07-22T17:51:14","modified_gmt":"2022-07-22T09:51:14","slug":"failed-to-migrate-from-wordpress-to-ghost-on-heroku","status":"publish","type":"post","link":"https:\/\/rogen.us\/en\/failed-to-migrate-from-wordpress-to-ghost-on-heroku\/","title":{"rendered":"Failed to migrate from WordPress to Ghost on Heroku"},"content":{"rendered":"<p><![CDATA[\n\n<p>I have a wordpress site, but as the content grows, the site often breaks down, so I&#8217;m planning to migrate my wp site to ghost blog.<\/p>\n\n\n\n\n\n<p>First, I need to create a ghost blog.The latest version of ghost blog has been updated to V4. This <a href=\"https:\/\/github.com\/thelovekesh\/ghost-v4-on-heroku\">tutorial<\/a> can meet the needs.<\/p>\n\n\n\n\n\n<p>I found that the ghost blog also uses jawsdb-maria as database\uff08same as my existing wp site\uff09.So I backed up the whole wp site using <code>mysqldump -h host -u usr -ppassword database &gt; backup.sql<\/code> command\uff0cThen use the <code>mysql -h host -u usr -ppassword database &lt; backup.sql<\/code> command to restore the backup content to ghost blog\uff0cend in failure. Although the code runs without errors, it doesn&#8217;t seem to work.<\/p>\n\n\n\n\n\n<p>So I found another way. The most important step is how to export the content of the wp site into a file usable by ghost blog.I followed this <a href=\"https:\/\/ghost.org\/docs\/migration\/wordpress\/\">tutorial<\/a>,The export process may require reading a lot of internal space. I tried several times, but all ended in failure. The wp site would crash, and then jump to the wordpress installation page. Heroku background log shows: Has exceeded the &#8216;max_questions&#8217; resource (current value : 3600 heroku).<\/p>\n\n\n\n\n\n<p>That&#8217;s the price to pay for using free resources, and finally I gave in and stopped looking for ways to migrate wp sites, and instead posted content from the old wp site to the new ghost blog one by one.<\/p>\n\n]]><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a wordpres&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[250],"tags":[],"class_list":["post-1821","post","type-post","status-publish","format-standard","hentry","category-coding-notes","wpcat-250-id"],"views":92,"_links":{"self":[{"href":"https:\/\/rogen.us\/en\/wp-json\/wp\/v2\/posts\/1821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rogen.us\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rogen.us\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rogen.us\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rogen.us\/en\/wp-json\/wp\/v2\/comments?post=1821"}],"version-history":[{"count":0,"href":"https:\/\/rogen.us\/en\/wp-json\/wp\/v2\/posts\/1821\/revisions"}],"wp:attachment":[{"href":"https:\/\/rogen.us\/en\/wp-json\/wp\/v2\/media?parent=1821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rogen.us\/en\/wp-json\/wp\/v2\/categories?post=1821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rogen.us\/en\/wp-json\/wp\/v2\/tags?post=1821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}