Railway cannot recognize variables during deployment

jamiejiheonkimPRO

9 months ago

I am trying to deploy the backend of my application, but it seems like it does not recognize variables that I manually input'd into the Variable tab.

I entered in all the necessary variables from local .env file into the railway variable, but it keeps crashing.

What I think is happening is that the deployment starts first and the variables are undefined during this process.

View Deploy details

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

2 Replies

carloslfuHOBBY

8 months ago

Same!


8 months ago

I'm deeply sorry that this thread went unnoticed.

I have looked, into both of your builds.

Carlos, please see these docs for turbo - https://turbo.build/repo/docs/crafting-your-repository/using-environment-variables#environment-modes

Jamie, please see our docs for Dockerfles - https://docs.railway.app/guides/dockerfiles#using-variables-at-build-time