Permalink
Browse files

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
  • Loading branch information...
Kureev authored and facebook-github-bot committed Jul 4, 2018
1 parent 079bf3f commit 50675404873c1ffac0deedc51fe745168051148b
Showing with 3 additions and 1 deletion.
  1. +1 −1 local-cli/server/middleware/MiddlewareManager.js
  2. +2 −0 local-cli/server/runServer.js
@@ -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

0 comments on commit 5067540

Please sign in to comment.