Issue with running GoLang service
xepobopa
HOBBYOP

a year ago

Hello! Im deploying a GoLang service on railway app (im using Hobby plan). It deploys well, but it log just the first line and then do nothing
main.go

package main

import (
    "context"
    "fmt"

    "Collector/internal/mexc"
)
func main() {
    fmt.Println("🚀 Starting Collector...")
    mexc.Run(context.Background())
}

I have a lot of logic inside Run function and planty logs, but i get only 🚀 Starting Collector... log and nothing more, no errors and logs.
I do not why it do not exec my code.

I also tested it by adding logs to Run func, but thay didnot exec too.

Maybe someone know how to fix it?
Full code of mexc.Run is here -> https://github.com/Lazy-Parser/Collector/blob/main/internal/mexc/main.go

1 Replies

xepobopa
HOBBYOP

a year ago

37b514d7-42c5-4dd1-baf6-ff6cd324227b


Loading...