mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 19:44:13 +00:00
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 portToUse = port || 8080;
|
||||||
var server = http.createServer(app);
|
var server = http.createServer(app);
|
||||||
server.listen(portToUse);
|
server.listen(portToUse, function(){
|
||||||
console.log('Open http://localhost:' + portToUse + '/react-native/index.html');
|
console.log('Open http://localhost:' + portToUse + '/react-native/index.html');
|
||||||
|
});
|
||||||
module.exports = server;
|
module.exports = server;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user