aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-18 10:54:08 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-18 10:54:08 +0000
commita35da9f9ccc1124d9b6f4461c7216ffbb0285e2f (patch)
treed5b4b8548caae36a20e1258a8341dab4b3d522d2 /bin
parent16bbc66ebafc6f1a55e47dbda3f3c0f658fe715c (diff)
parentc1ce89359a7b54ec97b54ce577e5534c180c5c4b (diff)
merged
Diffstat (limited to 'bin')
-rw-r--r--bin/www.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/www.js b/bin/www.js
new file mode 100644
index 0000000..63aa24d
--- /dev/null
+++ b/bin/www.js
@@ -0,0 +1,13 @@
+#!/usr/bin/env node
+var app = require('../app');
+var http = require('http');
+
+var port = '3000';
+app.set('port', port);
+
+var server = http.createServer(app);
+
+server.listen(port, function(){
+ console.log('listening on port 3000');
+});
+