Skip to content

Commit ce22150

Browse files
committed
Support for process.env.PORT
1 parent b5c42d8 commit ce22150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sgo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const command = yargs
1010
alias: 'p',
1111
describe: 'Set the port.',
1212
type: 'number',
13-
default: 1987,
13+
default: Number(process.env.PORT) || 1987,
1414
})
1515
.option('reload-port', {
1616
describe: 'Set the reload port.',

0 commit comments

Comments
 (0)