var express = require('express');
var app = express();

app.get('/', function(req, res){
  res.send('hello world');
});

app.listen(3000);

var express = require('express');
var app = express();
var server = require('http').createServer(app);
var port = process.env.PORT || 8080;
server.listen(port);




app.get('/', function(req, res){
  res.send('hello world');
});


Update server.js