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 }}
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
While deploying using docker to Heroku, I realized that we always need the .env file copied to the image otherwise the node app will throw an exception that it's missing. This means also that the node app don't take into account the envitonment variable set by Heroku.
It's not safe to create docker image with .env containing secrets. Would be nice to be able to disable dotenv support in production and rely on real environment variables.
Thanks
The text was updated successfully, but these errors were encountered:
Also running into this - it'd be nice to just defer to process.env if the .env file is not there and not require the file be there. Also comes up when deploying directly from a git repo, which wouldn't have the .env file in it (since it shouldn't be committed).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
While deploying using docker to Heroku, I realized that we always need the .env file copied to the image otherwise the node app will throw an exception that it's missing. This means also that the node app don't take into account the envitonment variable set by Heroku.
It's not safe to create docker image with .env containing secrets. Would be nice to be able to disable dotenv support in production and rely on real environment variables.
Thanks
The text was updated successfully, but these errors were encountered: