Starting Container 2024/10/01 15:31:07 Error loading .env file: open .env: no such file or directory container event container restart 2024/10/01 15:31:09 Error loading .env file: open .env: no such file or directory container event container restart 2024/10/01 15:31:11 Error loading .env file: open .env: no such file or directory container event container died, error when deploying a Go app
ademola100TRIAL
8 months ago
i'm getting the error
`Starting Container
2024/10/01 15:31:07 Error loading .env file: open .env: no such file or directory
container event container restart
2024/10/01 15:31:09 Error loading .env file: open .env: no such file or directory
container event container restart
2024/10/01 15:31:11 Error loading .env file: open .env: no such file or directory
container event container died`
when I try to deploy a GO application
ⓘ Deployment information is only viewable by project members and Railway employees.
2 Replies
8 months ago
Railway does not create .env files, variables are injected into the container.
Solution: don't log fatal on the error returned from the env load function.
Status changed to Solved brody • 8 months ago