my app cant find .env file
tatangdev
HOBBYOP
a year 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'
ⓘ Deployment information is only viewable by project members and Railway employees.
2 Replies
a year 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
HOBBYOP
a year ago
Yes, my app could read the variables previously, but after setting up the Nest ConfigModule, this error persists.