@ -1,14 +0,0 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
// GetPort returns the port to listen on
|
||||
func GetPort() string {
|
||||
port := os.Getenv("PUBLAPI_PORT")
|
||||
if port == "" {
|
||||
port = "3000"
|
||||
}
|
||||
return ":" + port
|
||||
}
|
Reference in New Issue
Block a user