Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 1.72 KB

01-wildcat.md

File metadata and controls

31 lines (28 loc) · 1.72 KB

wildcat

Starts the node application server that handles incoming requests and server side rendering.

wildcat.config.js

Configuration information for a wildcat project lives in a wildcat.config.js in the project's root directory. Everything is configurable, but by default wildcat loads sensible defaults. For a brand new project, we recommend copying the example project and tweaking from there.

Environment Variables

Certain features of wildcat can be enabled and disabled via environment variables.

COVERAGE

Enable code coverage generation with Istanbul. Defaults to false.

DEBUG

Setting DEBUG=wildcat logs a memory profile to a file and allows you to troubleshoot memory issues with your app via the chrome development tools.

HOST

Set the hostname for the app server. Defaults to localhost.

LOG_LEVEL

Log level value from 0 (no logs) to 4 (debug level). Defaults to 4.

MINIFY

Use webpack to minify JavaScript assets. Defaults to true if NODE_ENV=production

NODE_ENV

Setting to "production" minifies and builds the project while "development" enables hot reloading. Defaults to "development".

PORT

Port to run wildcat app server. Defaults to 3000

SERVICE_WORKERS

Generate a Service Worker. By default a service worker is generated if NODE_ENV=production. Set SERVICE_WORKERS to override the default behavior.

STATIC_HOST

Set the hostname for the static server. Defaults to localhost.

STATIC_PORT

Port to run wildcat static server. Defaults to 4000.