1

I'm trying to set the NODE_ENV variable and other ones in the production environment.

When I log in and do:

$ export NODE_ENV=production

It works. I can then check the variable with:

$ echo $NODE_ENV

The result is "production"

But if I log out and log in again the variable is empty, why is this happening? How can I set the environment variables persistently?

0 Answers0