Add delay, in case the container runs in deployment with hasura.

Hasura takes its sweet time to start up, that causes the client to error out
as the graphql proxy fires up practically instantly. This is a temporary workaround.
This commit is contained in:
2024-08-20 13:14:24 +01:00
parent 9f9e36efa9
commit 68526ddfd4
+2
View File
@@ -5,6 +5,7 @@ import (
"os"
"strings"
"sync"
"time"
"github.com/gofiber/fiber/v2/middleware/proxy"
"github.com/gookit/goutil/envutil"
@@ -118,6 +119,7 @@ func parseConfig() {
func main() {
parseConfig()
StartMonitoringServer()
time.Sleep(5 * time.Second)
StartHTTPProxy()
}