Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/app.js
View
2  lib/app.js
@@ -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 on Node.JS ' + process.version);\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(process.env['app_port'] || 3000);\n";
var packageJSON= '{\n "name":"' + appname + '",\n "node":"0.6.12",\n "author":"' + config.username + '"\n}';
fs.writeFileSync(folder + '/' + data.start, defaultCode);
log.info('writing the package.json file');

No commit comments for this range

Something went wrong with that request. Please try again.