aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Cholewiński <harry666t@gmail.com>2013-01-17 20:44:28 +0100
committerKamil Cholewiński <harry666t@gmail.com>2013-01-17 20:44:28 +0100
commit98ac86a3f361c7e1efcb237dbe51d264fd7db79b (patch)
treef5faae8dbc97f0c880147a388397ca2ca89ed9c1
parent17b44f45fc602ae5a347243c5ffc2e615fd2fa2d (diff)
downloadfunkylisp-master.zip
funkylisp-master.tar.gz
funkylisp-master.tar.bz2
Grab port number from envHEADmaster
-rw-r--r--app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.js b/app.js
index 9ed06d1..f1b5f86 100644
--- a/app.js
+++ b/app.js
@@ -23,4 +23,5 @@ miniapp.route.get("/fl.js", function (request) {
};
});
-http.createServer(miniapp.run).listen(8080);
+var port = process.env.PORT || 8080;
+http.createServer(miniapp.run).listen(port);