tiger74 Posted August 16, 2024 Posted August 16, 2024 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
Unknown025 Posted August 17, 2024 Posted August 17, 2024 A .env file should work if you have the dotenv Node package, or you can set environment variables in Plesk. Quote
Ookma-Kyi Posted August 17, 2024 Posted August 17, 2024 Just a warning, node has gotten user suspended on a completely blank application. Quote
wolstech Posted August 17, 2024 Posted August 17, 2024 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
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.