How do we get dotenv working? #1686
Unanswered
hankwallace
asked this question in
Q&A
Replies: 1 comment
-
I currently use Node v20.6.0. It loads a // package.json "start": "NODE_ENV=production node --env-file=.env ./node_modules/hubot/bin/hubot.js -a @hubot-friends/hubot-discord -n jbot",
"start:local": "NODE_ENV=development PORT=3001 node --env-file=.env --watch ./node_modules/hubot/bin/hubot.js -a @hubot-friends/hubot-discord --name jbot" Prior to that I used the following: // package.json "start": "env $(cat .env | grep -v \"#\" | xargs -0) hubot -a @hubot-friends/hubot-discord -n jbot" I've never used the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my previous bots, I had a script that was doing most of what dotenv does. I can't get the same to work with the new version of hubot and the dotenv docs have been no help.
Beta Was this translation helpful? Give feedback.
All reactions