Skip to content

Instantly share code, notes, and snippets.

View danrpts's full-sized avatar
🤠
Howdy

Daniel Peterson danrpts

🤠
Howdy
View GitHub Profile
@danrpts
danrpts / boot
Last active April 4, 2017 22:53 — forked from jdx/boot.js
#!/usr/bin/env node
// This script will boot bin/www with the number of workers
// specified in WORKER_COUNT.
//
// The master will respond to SIGHUP, which will trigger
// restarting all the workers and reloading the app.
var cluster = require('cluster');
var workerCount = process.env.WORKER_COUNT || 2;