Giter VIP home page Giter VIP logo

hexo-server's Introduction

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. :: 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
  header: true
  serveStatic:
    extensions:
    - html
  • 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
  • serveStatic: Extra options passed to serve-static

License

MIT

hexo-server's People

Contributors

tommy351 avatar jlhwung avatar noahdragon avatar yoshinorin avatar demurgos avatar segayuu avatar tomap avatar evancarroll avatar fabsenet avatar abernix avatar knpwrs avatar upupming avatar thesadabc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.