hexojs / hexo-server

Server module for Hexo.
MIT License
82 stars 51 forks source link
hexo hexo-plugin javascript

hexo-server

Build Status NPM version Coverage Status

Server module for Hexo.

Installation

$ npm install hexo-server --save

Usage

$ hexo server
Option Description Default
-i, --ip Override the default server IP. :: when IPv6 is available, else 0.0.0.0 (note: in most systems, :: also binds to 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
  cache: false
  header: true
  serveStatic:
    extensions:
    - html

License

MIT