Missing .env file?

Hey, I’m deploying symfony app, deployment is done correctly but I want to add Environment Variables because my .dockerignore contains my .env file. In console it seems that my app is missing .env file even though I added Env Variables in my app settings.

When I removed .env from .dockerignore file whole app worked fine but I want to add env vars in render dashboard so they are secrets and not in my git repo.

Hi Ch3ssnut,

Are you trying to access these environment variables during your build step? If so, check out https://render.com/docs/docker-secrets#environment-variables-in-docker-builds for more information on this.



This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.