CloudLinux OS
Go to portal
Node.js .env files support
IS
Igor Seletskiy
Posted on January 5

Add support for .env files https://nodejs.org/en/blog/release/v20.6.0

To initialize Node.js application with .env file, we need to use the following CLI command:

node --env-file=.env app.js

What's new
IZ
Ivan Zhmud
February 13

Hello valued CloudLinux client!

We wanted to let you know that we now have the ability to add environment variables in NodeJS applications before running them.

You can find more information here: https://docs.cloudlinux.com/cloudlinuxos/lve_manager/#edit-application-1.

I hope it is already able to help you.

However, your request is related to loading all environment variables from a JS file.

It’s a really convenient feature, and we are considering it.

We will keep you updated regarding the progress.

Thank you for your input!

How important is this to you?
Not important
Nice-to-have
Important
Critical