R
Railway6mo ago
intbyte

New deployments suddenly failing.

Not sure if this is an issue on my end or a Railway issue but all of a sudden all new deployments are failing with .env: not found Deployments which have previously worked fine now fail without any changes to the code itself nor the Railway config. I've attached a build log for a commit which I made a long time ago, and yet it failed with the same error. For reference, I have also attached a screenshot of the last working deployment. (for some reason, build logs aren't loading) Any help would be appreciated! (Project ID: 1790d4a8-0e32-4b4e-bf67-6ce23d7ae9e1)
Solution:
production code should not be trying to read environment variables from a .env file
Jump to solution
4 Replies
Percy
Percy6mo ago
Project ID: 1790d4a8-0e32-4b4e-bf67-6ce23d7ae9e1
Solution
Brody
Brody6mo ago
production code should not be trying to read environment variables from a .env file
intbyte
intbyteOP6mo ago
Got it working by removing --env-file=.env from the start command, thanks Brody!
Brody
Brody6mo ago
no problem
Want results from more Discord servers?
Add your server