Migrate your hexo website


Have you met the trouble of migrating your hexo website from one machine to another or one folder to another folder? Yeah, actually, this situation happens in our life in times. maybe you have ever troubled for these and have been looking for a simple way to deal with. and now I want to state what i did for this situation.

1. Check your environmwent

set up your hexo environment for new machine (refer to the steps 1 ~ 3 from my previous blog)

if you only migrate your hexo website from folder to another in the same machine, you only focus on step3 enough.

2. Replace the key files

once your set up your hexo website environment in your new folder or machine, just copy these files/folders from your old hexo direction into your new hexo directory and replaced enough
replace these files/folders

3. Execute required three steps
hexo clean or hexo c
hexo generate or hexo g
hexo deploy or hexo d

if some steps cann’t go through, turn back to check and see if some modules miss, basically, you can find easily the solution based on the hints information.


Author: Alan_Yuan
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source Alan_Yuan !
  TOC