Error node: .env: not found when start my node docker app
#3912
Unanswered
Ridermansb
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
adapter env requires that I have
.envfile on my nodejs application?I have a Node app that I'm deploying to Cloud Run using a Dockerfile.
And on my api I use
const environmentVariables = env(c);(from env adapter).The problem is that when I try to run my Docker container, I receive the following error:
This occurs because I have already configured the environment variables in my Docker container. Therefore, I don't need the .env file; I only require it for my local development.
Question:
process.envit's the same?Beta Was this translation helpful? Give feedback.
All reactions