From 9d118e479843e4da320d6bff859aea5bedd42010 Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Tue, 4 Jun 2013 13:51:32 +0100 Subject: [PATCH] port cmd line arg --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index def3d0a..ff100a1 100755 --- a/server.js +++ b/server.js @@ -5,4 +5,4 @@ var app = connect() .use(connect.logger('dev')) .use(connect.static(process.cwd())) .use(connect.directory(process.cwd())) - .listen(8000); \ No newline at end of file + .listen(process.argv[2] || 8000); \ No newline at end of file