Completely updated React, fixed #11, (hopefully)
This commit is contained in:
14
goTorrentWebUI/node_modules/react-scripts/scripts/eject.js
generated
vendored
14
goTorrentWebUI/node_modules/react-scripts/scripts/eject.js
generated
vendored
@@ -54,11 +54,17 @@ inquirer
|
||||
if (gitStatus) {
|
||||
console.error(
|
||||
chalk.red(
|
||||
`This git repository has untracked files or uncommitted changes:\n\n` +
|
||||
gitStatus.split('\n').map(line => ' ' + line) +
|
||||
'\n\n' +
|
||||
'This git repository has untracked files or uncommitted changes:'
|
||||
) +
|
||||
'\n\n' +
|
||||
gitStatus
|
||||
.split('\n')
|
||||
.map(line => line.match(/ .*/g)[0].trim())
|
||||
.join('\n') +
|
||||
'\n\n' +
|
||||
chalk.red(
|
||||
'Remove untracked files, stash or commit any changes, and try again.'
|
||||
)
|
||||
)
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
|
17
goTorrentWebUI/node_modules/react-scripts/scripts/start.js
generated
vendored
17
goTorrentWebUI/node_modules/react-scripts/scripts/start.js
generated
vendored
@@ -51,8 +51,23 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
|
||||
const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;
|
||||
const HOST = process.env.HOST || '0.0.0.0';
|
||||
|
||||
if (process.env.HOST) {
|
||||
console.log(
|
||||
chalk.cyan(
|
||||
`Attempting to bind to HOST environment variable: ${chalk.yellow(
|
||||
chalk.bold(process.env.HOST)
|
||||
)}`
|
||||
)
|
||||
);
|
||||
console.log(
|
||||
`If this was unintentional, check that you haven't mistakenly set it in your shell.`
|
||||
);
|
||||
console.log(`Learn more here: ${chalk.yellow('http://bit.ly/2mwWSwH')}`);
|
||||
console.log();
|
||||
}
|
||||
|
||||
// We attempt to use the default port but if it is busy, we offer the user to
|
||||
// run on a different port. `detect()` Promise resolves to the next free port.
|
||||
// run on a different port. `choosePort()` Promise resolves to the next free port.
|
||||
choosePort(HOST, DEFAULT_PORT)
|
||||
.then(port => {
|
||||
if (port == null) {
|
||||
|
Reference in New Issue
Block a user