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
@@ -24,7 +24,10 @@ import (
|
||||
const lBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
|
||||
func Host() string {
|
||||
apiURL := "http://localhost:8080"
|
||||
apiURL := os.Getenv("FN_API_URL")
|
||||
if apiURL == "" {
|
||||
apiURL = "http://localhost:8080"
|
||||
}
|
||||
|
||||
u, err := url.Parse(apiURL)
|
||||
if err != nil {
|
||||
@@ -59,7 +62,7 @@ func getServerWithCancel() (*server.Server, context.CancelFunc) {
|
||||
|
||||
common.SetLogLevel("fatal")
|
||||
timeString := time.Now().Format("2006_01_02_15_04_05")
|
||||
dbURL := os.Getenv("DB_URL")
|
||||
dbURL := os.Getenv(server.EnvDBURL)
|
||||
tmpDir := os.TempDir()
|
||||
tmpMq := fmt.Sprintf("%s/fn_integration_test_%s_worker_mq.db", tmpDir, timeString)
|
||||
tmpDb := fmt.Sprintf("%s/fn_integration_test_%s_fn.db", tmpDir, timeString)
|
||||
|
||||
Reference in New Issue
Block a user