Server module for Hexo.
JavaScript
Latest commit efd4c82 Jan 13, 2017 @thesadabc thesadabc committed with NoahDragon Fix Un-encode url (#25)
* fix encodeURI url when 302

* fix localhost address test

README.md

hexo-server

Build Status NPM version Coverage Status Build status

Server module for Hexo.

Installation

$ npm install hexo-server --save

Usage

$ hexo server
Option Description Default
-i, --ip Override the default server IP. 0.0.0.0
-p, --port Override the default port. 4000
-s, --static Only serve static files. false
-l, --log [format] Enable logger. Override log format. false
-o, --open Immediately open the server url in your default web browser. false

Options

server:
  port: 4000
  log: false
  ip: 0.0.0.0
  compress: false
  header: true
  • port: Server port
  • log: Display request info on the console. Always enabled in debug mode.
  • ip: Server IP
  • compress: Enable GZIP compression
  • header: Add X-Powered-By: Hexo header

License

MIT