Skip to content
Search Gists
Search Gists
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
erik4github
/
Dotenv Outside Current Dir.md
Created
February 18, 2021 04:19
Show Gist options
Download ZIP
Star
0
(
0
)
You must be signed in to star a gist
Fork
0
(
0
)
You must be signed in to fork a gist
Embed
Embed
Embed this gist in your website.
Share
Copy sharable link for this gist.
Clone via HTTPS
Clone using the web URL.
Learn more about clone URLs
Clone this repository at <script src="https://gist.github.com/erik4github/88ca5e806304f8b7c69f9f406cc96047.js"></script>
Save erik4github/88ca5e806304f8b7c69f9f406cc96047 to your computer and use it in GitHub Desktop.
Code
Revisions
1
Embed
Embed
Embed this gist in your website.
Share
Copy sharable link for this gist.
Clone via HTTPS
Clone using the web URL.
Learn more about clone URLs
Clone this repository at <script src="https://gist.github.com/erik4github/88ca5e806304f8b7c69f9f406cc96047.js"></script>
Save erik4github/88ca5e806304f8b7c69f9f406cc96047 to your computer and use it in GitHub Desktop.
Download ZIP
Load dotenv .env file outside of current directory
Raw
Dotenv Outside Current Dir.md
/.env
/server/package.json
node -r dotenv/config index.ts dotenv_config_path=../.env
Sign up for free
to join this conversation on GitHub
. Already have an account?
Sign in to comment
You can’t perform that action at this time.