Skip to content

Commit

Permalink
port
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankFang committed Oct 14, 2016
1 parent 7e1374d commit d968d4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var http = require('http')
var fs = require('fs')

//console.log(Object.keys(http))
var port = process.env.PORT || 8888;

var server = http.createServer(function(request, response){
if(request.url === '/'){
Expand All @@ -16,6 +17,6 @@ var server = http.createServer(function(request, response){
}
})

server.listen(8888)
server.listen(port)

console.log('监听成功')

0 comments on commit d968d4f

Please sign in to comment.