overleaf/services/filestore/cluster.coffee
2015-01-07 11:33:42 +00:00

9 lines
216 B
CoffeeScript

recluster = require "recluster" # https://github.com/doxout/recluster
path = require "path"
cluster = recluster path.join(__dirname, 'app.js'), {
workers: 2,
backoff: 0,
readyWhen: "listening"
}
cluster.run()