Blog系統轉移完成

Submitted by saladlam on

把舊Blog的文章轉移到Drupal 8,做了以下的事:

  1. Server由GoDaddy share hosting搬去Linode VPS。老早已不想用GoDaddy的share hosting,但因為沒有平價的網頁寄存方案,所以才一路繼續用。上年開始出現了每月只需十數美元一個月的Linux VPS方案,到現在口碑仍然唔錯。但因為VPS要由Server開始設定,比起Share hosting麻煩,但可以做的事多好多。而且現在我有的是時間,可以慢慢做設定調較。
  2. 使用Let's encrypt的SSL Certificate。因為Certificate的有效期是90天,所以也要寫個程式去處理更新問題。
  3. 把舊Blog的內文(連同Revision)、圖像、分類、留言等等插入新系統。因為Drupal 8的Database schema比較複雜,一篇Article content types文章可以改動五至六個Table,若果使用不透過Drupal在Database直接插入內容的方法,要花不少時間處理Table與Table之間的關係。而直接使用Entity API會比較簡單。同時間內文內的圖像等URI也要作出相應改動。
  4. 微調Drupal 8系統。
  5. 寫一個Redirector,將指向舊Blog文章及圖像的URI指去新位置。

首先學用Drupal 8,然後寫Testing code,最後真正做Migration,再加埋處理Server的工作,用了我三星期Full day時間做。

Add new comment

The content of this field is kept private and will not be shown publicly.

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA
Enter the characters shown in the image.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.