Permalink
Browse files

added nodejs version to hello world app

  • Loading branch information...
1 parent 4055cf0 commit 9ffe55f24fbb1040be05466e5ce092e63526ad83 @chrismatthieu chrismatthieu committed Mar 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/app.js
View
@@ -239,7 +239,7 @@ module.exports = {
log.info('writing app files');
fs.writeFileSync(folder + '/.gitignore', rcfile + "\n");
- var defaultCode = "var http = require('http');\n" + "http.createServer(function (req, res) {\n" + " res.writeHead(200, {'Content-Type': 'text/plain'});\n" + " res.end('Hello World\\nApp (" + appname + ") is running..');\n" + "}).listen(" + data.port + ");\n";
+ var defaultCode = "var http = require('http');\n" + "http.createServer(function (req, res) {\n" + " res.writeHead(200, {'Content-Type': 'text/plain'});\n" + " res.end('Hello World\\nApp (" + appname + ") is running on Node.JS " + process.version + "');\n" + "}).listen(" + data.port + ");\n";
fs.writeFileSync(folder + '/' + data.start, defaultCode);
var cmd = 'cd ' + folder + '; git add ' + data.start + ' .gitignore; git commit -am "Initial commit via ' + config.brand + '-cli"; git push origin master;';

0 comments on commit 9ffe55f

Please sign in to comment.