tiger74 Posted August 16 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?
Unknown025 Posted August 17 Posted August 17 A .env file should work if you have the dotenv Node package, or you can set environment variables in Plesk.
Ookma-Kyi Posted August 17 Posted August 17 Just a warning, node has gotten user suspended on a completely blank application.
wolstech Posted August 17 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now