Support
Quality
Security
License
Reuse
kandi has reviewed casperjs-runner-maven-plugin and discovered the below as its top functions. This is intended to give you an instant insight into casperjs-runner-maven-plugin implemented functionality, and help decide if they suit your requirements.
Get all kandi verified functions for this library.
Get all kandi verified functions for this library.
CasperJS Runner Maven plugin
QUESTION
environment variables not working in node js server
Asked 2022-Feb-17 at 12:18When i set my username and password directly in a nodemailer server, it works as expected
auth: {
user: 'myusername',
pass: 'mypassword'
},
But on using dotenv, nothing happens
require ('dotenv').config();
auth: {
user: process.env.USERNAME,
pass: process.env.PASSWORD
},
I ran npm install dotenv
on server side and set up a .env
file with the variables below:
USERNAME:myusername
PASSWORD:mypassword
ANSWER
Answered 2021-Dec-31 at 07:29The syntax in your .env
file is incorrect. Use equals =
signs rather than colon :
.
USERNAME=myusername
PASSWORD=mypassword
See also: https://www.npmjs.com/package/dotenv
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
No vulnerabilities reported
Save this library and start creating your kit
See Similar Libraries in
Save this library and start creating your kit
Open Weaver – Develop Applications Faster with Open Source