Fix react-native CLI (internal and external one)

Summary:
- Fix wrong debugger-ui path
- Override host and port using args

Reviewed By: yungsters

Differential Revision: D8731159

fbshipit-source-id: ca8ad76a02eda9e0b9cdb1a952aa5631d660868f
This commit is contained in:
Alexey Kureev 2018-07-03 23:45:28 -07:00 committed by Facebook Github Bot
parent 079bf3f206
commit 5067540487
2 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,7 @@ module.exports = class MiddlewareManager {
options: Options;
constructor(options: Options) {
const debuggerUIFolder = path.join(__dirname, 'util', 'debugger-ui');
const debuggerUIFolder = path.join(__dirname, '..', 'util', 'debugger-ui');
this.options = options;
this.app = connect()

View File

@ -66,6 +66,8 @@ async function runServer(args: Args, config: ConfigT) {
: config.getTransformModulePath(),
watch: !args.nonPersistent,
},
host: args.host,
port: args.port,
});
// In Node 8, the default keep-alive for an HTTP connection is 5 seconds. In