F4 web stack


Keywords
javascript, nodejs
Install
npm install fack@4.7.1

Documentation

Fack

NPM

F4 web stack with:

Environment Variables

  • ETCD_HOST: used to indicate on which hosts to read ETCD. Use comma to indicate multiple hosts
  • PORT: on which port to start server (default to 5000)
  • LOG_HOSTNAME: used to override hostname, ends up exported, in unique process name, in logs and might be in sdc prefix
  • DYNO: mainly for dokku scaling, to identify "instance" (can also be provided as DYNO_TYPE_NUMBER, for retro-compatibility)
  • APP_INSTANCE_NAME: used as a unique process name, that stays the same over successive deployments, and to identify app in logging, defaults to appname_hostname_dyno
  • STATSD_APPNAME: used to identify app in statsd and graphite, defaults to statsDPrefix.appname-dyno-workerName where statsDPrefix is either env STATSD_PREFIX or etcd /server/statsd/prefix or hostname, and workerName comes from env var WORKER_NAME
  • WORKER_NAME: to be used when server start "child" processes. It modifies logs field name, process title, statsd prefix and unique process name