setting NODE_ENV for production
-
I noticed while while restarting the Etherpad app that it is currently loading in development mode.
[WARN] settings - Etherpad is running in Development mode. This mode is slower for users and less secure than production mode. You should set the NODE_ENV environment variable to production by using: export NODE_ENV=production
In which file should I add
NODE_ENV=production? I'm not seeing anything in the File Manager for environment variables. -
I never thought about it. Is there a difference in = production?
-
It looks like Cloudron is trying to set
NODE_ENV=productionin start.sh:57, but this clearly isn't working based on what is in the logs.@robi Adding a
.envfile withNODE_ENV=productionunfortunately didn't change this.@luckow Warning message in the logs says "This mode is slower for users and less secure than production mode."
Wanted to flag that I see an example in the Etherpad documentation that sets this via Docker Compose: https://docs.etherpad.org/docker.html#:~:text=NODE_ENV%3A production
-
N nebulon marked this topic as a question on
-
N nebulon has marked this topic as solved on
-
Latest package was fixed to use node production mode. Usually this doesn't really do much, but at least the warning is gone.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login