Browse files

[minor] Version bump. Fix small bug in 0.2.6

  • Loading branch information...
1 parent 2bcc53d commit 29bc24f824d2922f1f12af71ce090286f255018f @indexzero indexzero committed Nov 16, 2010
Showing with 13 additions and 3 deletions.
  1. +1 −2 bin/forever
  2. +1 −1 package.json
  3. +11 −0 samples/server.js
View
3 bin/forever
@@ -59,8 +59,7 @@ var mappings = {
// Show help prompt if requested or if the
// incorrect usage options are supplied
-if (argv.h || argv.help || Object.keys(argv).length === 2
- || argv._.length === 0) {
+if (argv.h || argv.help || argv._.length === 0) {
sys.puts(help);
return;
}
View
2 package.json
@@ -1,7 +1,7 @@
{
"name": "forever",
"description": "A simple CLI tool for ensuring that a given node script runs continuously (i.e. forever)",
- "version": "0.2.6",
+ "version": "0.2.7",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
"contributors": [
{ "name": "Fedor Indutny", "email": "fedor.indutny@gmail.com" }
View
11 samples/server.js
@@ -0,0 +1,11 @@
+var sys = require('sys'),
+ http = require('http');
+
+http.createServer(function (req, res) {
+ res.writeHead(200, {'Content-Type': 'text/plain'});
+ res.write('hello, i know nodejitsu.')
+ res.end();
+}).listen(80);
+
+/* server started */
+sys.puts('> hello world running on port 80');

0 comments on commit 29bc24f

Please sign in to comment.