Migrating HEXO from Ubuntu to Windows

Source: Internet
Author: User
Tags git shell

found that node. js under Windows was easy to use and decided to migrate Hexo to Windows.
Direct copying is not advisable.
My approach is to copy the Hexo theme and source folder, and other content to be manually configured.

The premise of this article:
The system has node. js and Git installed.
All of the commands in this article are executed in Git Bash, not in CMD.
Git Shell is a better choice if you install GitHub for Windows.

Copy the required files

You need to copy the following folders:

  • hexo/source
  • hexo/themes/ 你的主题文件夹
    and the following documents:
  • hexo/_config.yml
  • packge.json
Deploying a new Hexo in Windows
  1. Run the command in the folder where you want to deploy Hexo: hexo init , create a new Hexo directory.
  2. Copy the copied packge.json files to the new Hexo directory, overwriting the original files.
  3. Executes the npm install installation dependency package.
  4. Copy the remaining two folders and _config.yml to the corresponding location.
  5. Run the hexo g build blog.
  6. Run hexo s -o to view your blog.
    PS. If open http://0.0.0.0:4000/ cannot be accessed, try openinghttp://localhost:4000/

Completed.

Migrating HEXO from Ubuntu to Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.