Skip to content

Commit

Permalink
let it pass env load on railway
Browse files Browse the repository at this point in the history
  • Loading branch information
natserract committed Nov 11, 2024
1 parent e03679a commit 29b45c3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions server/cmd/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ func main() {
gob.Register([]interface{}{})
gob.Register(map[string]interface{}{})

err := godotenv.Load()
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to load .env %v\n", err)
os.Exit(1)
}
// Railway doesn't need to load environment variables from an .env file, that's only for local development.
// Do nothing
godotenv.Load()

cfg := config.GetConfig()

Expand Down

0 comments on commit 29b45c3

Please sign in to comment.