Knox
Explore posts from serversRelease Go app with Docker and godotenv
I have this function that I use on my server setup to load the .env variable and on my main.go I do a simple load
Locally it works but when hosting with a Dockerfile the app crashes because it can't load the env variable
The app is deployed but eventually crashes with
Any clue ? I know this isn't a railway problem more but any feedback would be appreciated.
11 replies