serve-this

0.1.6 • Public • Published

serve-this

A minimal http server based on express.js

Build Status

NPM NPM

Description

serve-this is an http server for static sites.

If you use node and npm to develop your site, first install serve-this, then add

"scripts": {
  "start": "serve-this"
}

into your package.json and finally run

npm start

Installation

You can install this application by using npm

npm install --save serve-this

You can configure serve-this by using either your package.json file

{
  "name": "app",
  "version": "0.1.5",
  ...
  "serve-this": {
    "log-level":  "error/warning/verbose" (default warning),
    "folder": "/var/www/dist/" (default localfoder/dist),
    "port": 8080 (default 8888),
    "address": "10.11.12.13" (default 0.0.0.0)
  }
  ...
}

or these environment variables

SERVE_THIS_LOG_LEVEL="error/warning/verbose" (default warning)
SERVE_THIS_FOLDER="/var/www/dist/" (default localfoder/dist)
SERVE_THIS_PORT="8080" (default 8888)
SERVE_THIS_ADDRESS="10.11.12.13" (default 0.0.0.0)

Readme

Keywords

none

Package Sidebar

Install

npm i serve-this

Weekly Downloads

1

Version

0.1.6

License

MIT

Last publish

Collaborators

  • boemianrapsodi