tiger74 Posted August 16 Share Posted August 16 I am using node.js for my web application. The process.env.MY_VAR didn't seem to work. If I can't access them through node.js, can I use a .env file? Quote Link to comment Share on other sites More sharing options...
Unknown025 Posted August 17 Share Posted August 17 A .env file should work if you have the dotenv Node package, or you can set environment variables in Plesk. Quote Link to comment Share on other sites More sharing options...
Ookma-Kyi Posted August 17 Share Posted August 17 Just a warning, node has gotten user suspended on a completely blank application. Quote Link to comment Share on other sites More sharing options...
wolstech Posted August 17 Share Posted August 17 I wouldn't say "completely blank", as even an empty app will have modules imported, and those modules can cause tons of load just from being loaded. A truly empty app won't even start (or more correctly, it would immediately exit). But yeah, node's load is no joke. Node, Wordpress, and Laravel are probably the three things users should avoid if at all possible. These can be made to work acceptably, but you have to really pay attention to the resource usage, especially on memory, to avoid getting a suspension for them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.