-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[minor] More work for multiple processes from a single programmatic u…
…sage
- Loading branch information
Showing
4 changed files
with
54 additions
and
40 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 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require.paths.unshift(require('path').join(__dirname, '..', 'lib')); | ||
|
||
var util = require('util'), | ||
forever = require('forever'), | ||
path = require('path'), | ||
script = path.join(__dirname, 'server.js'); | ||
|
||
var child1 = new (forever.Forever)(script, { 'options': [ "--port=8080"] }); | ||
child1.start(); | ||
util.puts('Forever process running server.js on 8080'); | ||
|
||
var child2 = new (forever.Forever)(script, { 'options': [ "--port=8081"] }); | ||
child2.start(); | ||
util.puts('Forever process running server.js on 8081'); |
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