Log listening port
Summary: Slight changes to the URL and port logging. Reviewed By: passy Differential Revision: D36310796 fbshipit-source-id: 553b9ce932792c471f8e0e2c1a0c7d79897ad59d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ad76060614
commit
ec667bc26d
@@ -17,7 +17,6 @@ import {startWebServerDev} from './startWebServerDev';
|
|||||||
|
|
||||||
import yargs from 'yargs';
|
import yargs from 'yargs';
|
||||||
import open from 'open';
|
import open from 'open';
|
||||||
import {sleep} from 'flipper-common';
|
|
||||||
import {initCompanionEnv} from 'flipper-server-companion';
|
import {initCompanionEnv} from 'flipper-server-companion';
|
||||||
|
|
||||||
const argv = yargs
|
const argv = yargs
|
||||||
@@ -107,12 +106,14 @@ async function start() {
|
|||||||
|
|
||||||
start()
|
start()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
console.log(
|
||||||
|
'Flipper server started and listening at port ' + chalk.green(argv.port),
|
||||||
|
);
|
||||||
const url = `http://localhost:${argv.port}/index.web${
|
const url = `http://localhost:${argv.port}/index.web${
|
||||||
argv.bundler ? '.dev' : ''
|
argv.bundler ? '.dev' : ''
|
||||||
}.html`;
|
}.html`;
|
||||||
console.log('Flipper server started at ' + chalk.green(chalk.bold(url)));
|
console.log('Go to: ' + chalk.green(chalk.bold(url)));
|
||||||
if (argv.open) {
|
if (argv.open) {
|
||||||
sleep(1000);
|
|
||||||
open(url);
|
open(url);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user