New deployments suddenly failing.

Anonymous
TRIAL

a year ago

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)

0 Replies

a year ago

production code should not be trying to read environment variables from a .env file


Anonymous
TRIAL

a year ago

Got it working by removing --env-file=.env from the start command, thanks Brody!


a year ago

no problem


New deployments suddenly failing. - Railway Help Station