forked from Kong/insomnia-mockbin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(remove clustering logic, reccomended to use PM2):
- Loading branch information
Ahmad Nassri
committed
Feb 12, 2016
1 parent
e51b6a9
commit 514e85b
Showing
5 changed files
with
27 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
'use strict' | ||
|
||
require('./cluster')() | ||
var app = require('./src') | ||
var dotenv = require('dotenv') | ||
var pkg = require('./package') | ||
|
||
dotenv.config({ silent: true }) | ||
|
||
var options = { | ||
port: process.env.MOCKBIN_PORT || pkg.config.port, | ||
quiet: process.env.MOCKBIN_QUIET || pkg.config.quiet, | ||
redis: process.env.MOCKBIN_REDIS || pkg.config.redis | ||
} | ||
|
||
app(options, function () { | ||
console.info('starting server on port: %d', options.port) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters