mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fn-prefix everything (#545)
* Fn-prefix everything Closes: #492 * Global replacement * missed one fn_
This commit is contained in:
committed by
Chad Arimura
parent
64997ed0fe
commit
5c68a88599
@@ -37,13 +37,13 @@ var (
|
||||
)
|
||||
|
||||
const (
|
||||
EnvLogLevel = "LOG_LEVEL"
|
||||
EnvMQURL = "MQ_URL"
|
||||
EnvDBURL = "DB_URL"
|
||||
EnvLOGDBURL = "LOGSTORE_URL"
|
||||
EnvPort = "PORT" // be careful, Gin expects this variable to be "port"
|
||||
EnvAPICORS = "API_CORS"
|
||||
EnvZipkinURL = "ZIPKIN_URL"
|
||||
EnvLogLevel = "FN_LOG_LEVEL"
|
||||
EnvMQURL = "FN_MQ_URL"
|
||||
EnvDBURL = "FN_DB_URL"
|
||||
EnvLOGDBURL = "FN_LOGSTORE_URL"
|
||||
EnvPort = "FN_PORT" // be careful, Gin expects this variable to be "port"
|
||||
EnvAPICORS = "FN_API_CORS"
|
||||
EnvZipkinURL = "FN_ZIPKIN_URL"
|
||||
|
||||
// Defaults
|
||||
DefaultLogLevel = "info"
|
||||
@@ -298,7 +298,7 @@ func (s *Server) Start(ctx context.Context) {
|
||||
|
||||
func (s *Server) startGears(ctx context.Context, cancel context.CancelFunc) {
|
||||
// By default it serves on :8080 unless a
|
||||
// PORT environment variable was defined.
|
||||
// FN_PORT environment variable was defined.
|
||||
listen := fmt.Sprintf(":%d", getEnvInt(EnvPort, DefaultPort))
|
||||
|
||||
const runHeader = `
|
||||
|
||||
Reference in New Issue
Block a user