Skip to content

Commit 22c150e

Browse files
Parse port as int (#140)
See nhsuk/nhsuk-prototype-kit#347 (thanks @edwardhorsford)
1 parent f202f6d commit 22c150e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const nodemon = require('gulp-nodemon');
1212
const config = require('./app/config');
1313

1414
// Set configuration variables
15-
const port = process.env.PORT || config.port;
15+
const port = parseInt(process.env.PORT) || config.port;
1616

1717
// Delete all the files in /public build directory
1818
function cleanPublic() {

0 commit comments

Comments
 (0)