0.1.6 • Published 10 years ago

serve-this v0.1.6

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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)
0.1.6

10 years ago

0.1.5

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago