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:
parent
079bf3f206
commit
5067540487
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue