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
ademola100
TRIALOP

a year 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

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

2 Replies

brody
EMPLOYEE

a year 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.


ademola100
TRIALOP

a year ago

Thank you


Status changed to Solved brody about 1 year ago


Loading...