Merge branch 'master' into rmevans9/rn-cli-commands

This commit is contained in:
Norbert de Langen 2017-09-20 22:10:14 +02:00 committed by GitHub
commit 1361bcf5e3
2 changed files with 4 additions and 2 deletions

View File

@ -152,7 +152,8 @@ server.listen(...listenAddr, error => {
Promise.all([webpackValid, serverListening])
.then(() => {
const address = `http://${program.host || 'localhost'}:${program.port}/`;
const proto = program.https ? 'https' : 'http';
const address = `${proto}://${program.host || 'localhost'}:${program.port}/`;
logger.info(`Storybook started on => ${chalk.cyan(address)}\n`);
if (program.smokeTest) {
process.exit(0);

View File

@ -152,7 +152,8 @@ server.listen(...listenAddr, error => {
Promise.all([webpackValid, serverListening])
.then(() => {
const address = `http://${program.host || 'localhost'}:${program.port}/`;
const proto = program.https ? 'https' : 'http';
const address = `${proto}://${program.host || 'localhost'}:${program.port}/`;
logger.info(`Storybook started on => ${chalk.cyan(address)}\n`);
if (program.smokeTest) {
process.exit(0);