Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enviroment variables (via .env) are not being loaded #21

Open
DonatoM opened this issue Nov 23, 2019 · 0 comments
Open

Enviroment variables (via .env) are not being loaded #21

DonatoM opened this issue Nov 23, 2019 · 0 comments

Comments

@DonatoM
Copy link

DonatoM commented Nov 23, 2019

Currently, we are not loading environment variables, which result in the application crashing when attempting to run it.

Error:
Screen Shot 2019-11-23 at 17 36 58

To fix this error you should load the environment variables prior to using them. Copy + paste the following code in this line.

// load environment variables declared in your .env file
require('dotenv').config()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant