Skip to content

Commit ab689d1

Browse files
committed
Parse port for heroku demo
1 parent 0892d24 commit ab689d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ module.exports = function (grunt) {
3535
options: {
3636
hostname: '*',
3737
base: ['support/development-demo', 'support/development-demo/build', 'build'],
38-
port: 3000
38+
port: process.env.PORT || 3000
3939
}
4040
},
4141
'demo-https': {
4242
options: {
4343
base: ['support/development-demo', 'support/development-demo/build', 'build'],
44-
port: 3000,
44+
port: process.env.PORT || 3000,
4545
protocol: 'https',
4646
hostname: '*',
4747
cert: fs.readFileSync(__dirname + '/test/support/https-certs/server.crt').toString(),

0 commit comments

Comments
 (0)