I have hosted my node api on Plesk. But i cant find anywhere to add my env variables so that my api could work.
As you can see in the below image. custom variables option is below Application Startup File
but in my case its not there.
I have hosted my node api on Plesk. But i cant find anywhere to add my env variables so that my api could work.
As you can see in the below image. custom variables option is below Application Startup File
but in my case its not there.
(Plesk for Linux only) Custom environment variables - Here you can see a list of custom environment variables you have set for your application (if any). Click “[specify]” to add or remove environment variables for your application:
If you running Plesk on Linux env then the above option is available else you need to follow the below steps.
You need to use .env
outside the application folder and create a custom script and pass these .env
and send them as arguments when you run the node script. Check this link if it helps.