serve-this
v0.1.6
Published
A minimal server for static sites
Downloads
3
Readme
serve-this
A minimal http server based on express.js
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)