From e0d4758540a10ecb49e74726d2b2a7e722167fc5 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Mon, 4 Nov 2024 20:07:38 +0200 Subject: [PATCH] Add docker deploy --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index e4011d2..9e8b850 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,7 @@ import ( "gitea.stuzer.link/stuzer05/go-firefly3/v2" "gitea.stuzer.link/stuzer05/go-monobank" "github.com/antihax/optional" + "github.com/joho/godotenv" "log" "net/http" "os" @@ -16,7 +17,7 @@ import ( func main() { // load .env - //godotenv.Load(".env") + godotenv.Load(".env") // init app app.Init() @@ -77,7 +78,7 @@ func main() { // register monobank webhook _, err := app.App().MonobankClient.Api.PersonalWebhookPost(context.Background(), monobank.SetWebHook{WebHookUrl: webhookUrl}, os.Getenv("MONOBANK_TOKEN")) if err != nil { - log.Fatalln("failed to register monobank webhook") + log.Fatalln("failed to register monobank webhook: " + err.Error()) } // set webhook