Map / route to correct HTML file
Summary: CHANGELOG: Open Flipper Server at / Reviewed By: lawrencelomax Differential Revision: D37517406 fbshipit-source-id: 71043c3df75d9436020da477c937795671fa15a9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
47956087ee
commit
13535e9753
@@ -96,7 +96,7 @@ async function start() {
|
|||||||
const {app, server, socket, readyForIncomingConnections} = await startServer({
|
const {app, server, socket, readyForIncomingConnections} = await startServer({
|
||||||
port: argv.port,
|
port: argv.port,
|
||||||
staticDir,
|
staticDir,
|
||||||
entry: 'index.web.dev.html',
|
entry: `index.web${argv.bundler ? '.dev' : ''}.html`,
|
||||||
});
|
});
|
||||||
|
|
||||||
const flipperServer = await startFlipperServer(
|
const flipperServer = await startFlipperServer(
|
||||||
@@ -153,9 +153,7 @@ start()
|
|||||||
console.log(
|
console.log(
|
||||||
'Flipper server started and listening at port ' + chalk.green(argv.port),
|
'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}`;
|
||||||
argv.bundler ? '.dev' : ''
|
|
||||||
}.html`;
|
|
||||||
console.log('Go to: ' + chalk.green(chalk.bold(url)));
|
console.log('Go to: ' + chalk.green(chalk.bold(url)));
|
||||||
if (argv.open) {
|
if (argv.open) {
|
||||||
open(url);
|
open(url);
|
||||||
|
|||||||
Reference in New Issue
Block a user