-
Notifications
You must be signed in to change notification settings - Fork 945
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api test] Update to use nconf for forever configuration. Use uids fo…
…r filenames instead of forever* and forever pids (more defensive + support for multiple monitors from a single `forever` process).
- Loading branch information
Showing
5 changed files
with
59 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
var sys = require('sys'), | ||
http = require('http'); | ||
var sys = require('sys'), | ||
http = require('http'), | ||
argv = require('optimist').argv; | ||
|
||
var port = argv.p || argv.port || 80; | ||
|
||
http.createServer(function (req, res) { | ||
res.writeHead(200, {'Content-Type': 'text/plain'}); | ||
res.write('hello, i know nodejitsu.') | ||
res.end(); | ||
}).listen(8000); | ||
}).listen(port); | ||
|
||
/* server started */ | ||
sys.puts('> hello world running on port 80'); | ||
sys.puts('> hello world running on port ' + 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
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