Adding button to deploy to heroku

To solve the problem of ports I made a condition to use the ENV `PORT` value returned by most clounds otherwise use the default port 80.

I currently use this implementation without any problems.

closes #88 and closes #114
This commit is contained in:
Vinícius Francisco Xavier
2021-09-07 14:50:50 -03:00
parent 78c06f8fc4
commit bdc9a49021
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ const argv = optimist
describe: 'use this flag to indicate proxy over https'
})
.options('port', {
default: '80',
default: process.env.PORT || '80',
describe: 'listen on this port for outside requests'
})
.options('address', {