make a callback for server run only when done
This commit is contained in:
parent
e9ef277147
commit
10c2205171
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue