How to target/reference Environment Variables set in Node.js Selector?
Forum
  1. Forums
  2. General
  3. Programming for CloudLinux
  1. Ted Stark
  2. Saturday, 16 November 2019
  3.  Subscribe via email
I am trying to find out how to reference or make use of the Environment Variables that can be set in the Node.js selector interface in cPanel in my Node.js application.

I can successfully use a standard .env file and dotenv package for my variables in the app if necessary. But I was interested in making use of the Node.js selector interface as well. However, when I disable my .env file the variables I've defined in the selector are not found.

What do I need to include in my Node.js code to correctly target the defined environment variables?

TIA
Rate this post:
  1. 18.11.2019 13:11:52
  2. # 1
Sergey Khristich Accepted Answer
Posts: 137
Joined: 20.05.2019
0
Votes
Undo
Hello Ted,
Thank you for reaching out! We are really sorry about your experience. We are working on this issue. In this case, correction is necessary from LightSpeed. To expedite the processing, it will be better if you also contact LightSpeed directly. Thanks in advance!
Marketing Manager
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.