File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const main = async (args: Args): Promise<void> => {
3434 commit : commit || "development" ,
3535 host : args . host || ( args . auth === AuthType . Password && typeof args . cert !== "undefined" ? "0.0.0.0" : "localhost" ) ,
3636 password : originalPassword ? hash ( originalPassword ) : undefined ,
37- port : typeof args . port !== "undefined" ? args . port : 8080 ,
37+ port : typeof args . port !== "undefined" ? args . port : process . env . PORT !== "" ? process . env . PORT : 8080 ,
3838 socket : args . socket ,
3939 }
4040 if ( ! options . cert && args . cert ) {
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export interface HttpServerOptions {
100100 readonly commit ?: string
101101 readonly host ?: string
102102 readonly password ?: string
103- readonly port ?: number
103+ readonly port ?: number | string
104104 readonly socket ?: string
105105}
106106
You can’t perform that action at this time.
0 commit comments