Whether import .env and moleculer runner with --env all just the same target for using environment variables? #1197
Answered
by
icebob
liaodalin19903
asked this question in
Q&A
-
We can use below script to load .env file:
in my experience, we can use import way to load the environment variables.
whether the both methods' target all just provide environment variables to moleculer? |
Beta Was this translation helpful? Give feedback.
Answered by
icebob
Mar 26, 2023
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
liaodalin19903
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
--env
does the same as you wroterequire('dotenv').config();