forked from rgrove/combohandler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
executable file
·35 lines (30 loc) · 914 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env node
/**
Cluster initialization file for the site. See the Cluster docs at
<http://learnboost.github.com/cluster/> for details about Cluster.
**/
var cluster = require('cluster'),
server = require('./lib/server');
cluster(server(require('./config')))
.set('title', 'combohandler')
.in('development')
.set('workers', 1)
.use(cluster.pidfiles())
.use(cluster.cli())
.use(cluster.logger('logs', 'debug'))
.use(cluster.reload([
'config.js',
'index.js',
'lib',
], {
extensions: ['.js'],
interval : 1000,
signal : 'SIGQUIT'
}))
.use(cluster.debug())
.listen(8000)
.in('production')
.use(cluster.pidfiles())
.use(cluster.cli())
.use(cluster.logger('logs'))
.listen(8000);