kykint

Fix startup

Server can now be executed with `npm start`.
......@@ -108,6 +108,4 @@ function handleEvent(event) {
});
}
app.listen(3000, function () {
console.log('Linebot listening on port 3000!');
});
module.exports = app;
\ No newline at end of file
......
......@@ -7,6 +7,7 @@
var app = require('../app');
var debug = require('debug')('project:server');
var http = require('http');
var fs = require('fs');
/**
* Get port from environment and store in Express.
......@@ -25,7 +26,9 @@ var server = http.createServer(app);
* Listen on provided port, on all network interfaces.
*/
server.listen(port);
server.listen(port, function () {
console.log('Linebot listening on port ' + port + '!');
});
server.on('error', onError);
server.on('listening', onListening);
......
......@@ -5,7 +5,7 @@
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
"start": "node ./bin/www"
},
"author": "강수인",
"license": "MIT",
......