Skip to content

Commit 5067540

Browse files
Alexey Kureevfacebook-github-bot
Alexey Kureev
authored andcommitted
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
1 parent 079bf3f commit 5067540

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

local-cli/server/middleware/MiddlewareManager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = class MiddlewareManager {
4040
options: Options;
4141

4242
constructor(options: Options) {
43-
const debuggerUIFolder = path.join(__dirname, 'util', 'debugger-ui');
43+
const debuggerUIFolder = path.join(__dirname, '..', 'util', 'debugger-ui');
4444

4545
this.options = options;
4646
this.app = connect()

local-cli/server/runServer.js

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ async function runServer(args: Args, config: ConfigT) {
6666
: config.getTransformModulePath(),
6767
watch: !args.nonPersistent,
6868
},
69+
host: args.host,
70+
port: args.port,
6971
});
7072

7173
// In Node 8, the default keep-alive for an HTTP connection is 5 seconds. In

0 commit comments

Comments
 (0)