We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 824e202 commit 0931123Copy full SHA for 0931123
Procfile
@@ -0,0 +1 @@
1
+web: node app.js
app.js
@@ -399,6 +399,8 @@ function serveTest(query, response)
399
response.end();
400
}
401
402
+var port = Number(process.env.PORT || process.env.VCAP_APP_PORT || 5000);
403
+
404
http.createServer(function (request, response)
405
{
406
var parsedUrl = url.parse(request.url);
@@ -437,7 +439,7 @@ http.createServer(function (request, response)
437
439
438
440
441
- }).listen(process.env.VCAP_APP_PORT || 8888);
442
+ }).listen(port);
443
-util.puts("Server running");
444
+util.puts("Server running on port " + port);
445
0 commit comments