fixes #1584 PORT env variable not always an integer (#1585)

This commit is contained in:
Mato Ilic
2017-02-19 00:05:56 +01:00
committed by Dan Abramov
parent bee4ecec86
commit dd9ec7bcfb

View File

@@ -43,7 +43,7 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
}
// Tools like Cloud9 rely on this.
var DEFAULT_PORT = process.env.PORT || 3000;
var DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;
var compiler;
var handleCompile;