Skip to content

Commit

Permalink
fixes facebook#1584 PORT env variable not always an integer (facebook…
Browse files Browse the repository at this point in the history
  • Loading branch information
matoilic authored and SpaceK33z committed Feb 19, 2017
1 parent 24b8da6 commit a5f8b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-cy-scripts/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a5f8b88

Please sign in to comment.