Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var express = require('express')
- , http = require('http')
- , app = express()
- , server = http.createServer(app);
- app.get('/', function(req, res) {
- res.sendfile(__dirname + '/index.html');
- });
- app.listen(8090);
- console.log("started...");
- app.close();
- app.close();
- ^
- TypeError: Object function app(req, res){ app.handle(req, res); } has no method 'close'
- process.exit(code=0)
- process.on('SIGTERM', function () {
- app.close();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement