Skip to content

Commit

Permalink
make a callback for server run only when done
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Mar 27, 2015
1 parent e9ef277 commit 10c2205
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ var app = connect()

var portToUse = port || 8080;
var server = http.createServer(app);
server.listen(portToUse);
console.log('Open http://localhost:' + portToUse + '/react-native/index.html');
server.listen(portToUse, function(){
console.log('Open http://localhost:' + portToUse + '/react-native/index.html');
});
module.exports = server;

0 comments on commit 10c2205

Please sign in to comment.