Skip to content
my app cant find .env file
tatangdev
OP

2 years ago

my nest app cant find the .env file: > nest start

[Nest] 27 - 12/30/2024, 5:10:43 PM ERROR [Load Config] Error: ENOENT: no such file or directory, open '/app/.env'

View Deploy details

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

2 Replies

2 years ago

You're not supposed to have a .env file in production anyway, if you're looking to define environment variables then you can add them in the service's Variables tab


tatangdev
OP

2 years ago

Yes, my app could read the variables previously, but after setting up the Nest ConfigModule, this error persists.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...