-
Notifications
You must be signed in to change notification settings - Fork 31
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
Environment config support? #171
Comments
@Frijol @HipsterBrown any suggestions? |
I've never tried deploying with a .env file, but my guess is that require('dotenv').config({path: path.join(__dirname, '.env')}); |
@rwaldron thanks I'll give this a shot and report back! |
Hi @danawoodman! Did you manage to make it work by specifying the path with |
ok just to confirm, specifying the path works. Thanks!!! |
I am trying to use environment configs to allow me to develop, test and deploy to my Tessel without hardcoding API keys etc.
I have attempted to use node-config as well as dotenv and while both work great in my Jest test suite and in development, the configs don't work on the Tessel. I have added my
.env
file to.tesselinclude
and triple checked everything but nothing is working.Are environment configs support on Tessel's VM/OS? If so, what am I missing?
Thanks!
The text was updated successfully, but these errors were encountered: