serverless-mailer icon indicating copy to clipboard operation
serverless-mailer copied to clipboard

where is the .env file?

Open ndonnipa opened this issue 9 years ago • 4 comments

i cant seem to find the .env file?

ndonnipa avatar Jan 30 '17 13:01 ndonnipa

@ndonnipa take a look on this project here: https://github.com/motdotla/dotenv . It'll clarify on how to use and set ENV Variables throughs this .env file.

marcogbarcellos avatar Feb 09 '17 00:02 marcogbarcellos

I think the description of this project must be updated, at least to reference that link you mentioned before @marcogbarcellos . It is not clear if the owner forgot to add this file, or in fact he assumed we all be heading to the https://github.com/motdotla/dotenv library.

This post explains the situation in an easier context: https://medium.com/@rafaelvidaurre/managing-environment-variables-in-node-js-2cb45a55195f#.pfdp7ld1c

rcfrias avatar Feb 20 '17 19:02 rcfrias

I think the missing info is: "Create a file named .env" <- this file gets included in the deploy and its automatically used to authenticate with the Email Server. No need to load or install any other dependency. I just tested it. Also, the docs are inaccurate, the pull request is valid for the right command serverless invoke -f send -p event.json but @eahefnawy hasn't merged this yet. I think he is not actively checking this project.

rcfrias avatar Feb 22 '17 18:02 rcfrias

Agreed, it needs to be updated the documentation... I had no idea about using -p instead of -e

TheDagger avatar Nov 04 '17 08:11 TheDagger