mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-25 22:39:31 +08:00
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user