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 коммит произвёл Facebook Github Bot
Родитель 079bf3f206
Коммит 5067540487
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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