Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Etherpad Lite
  3. setting NODE_ENV for production

setting NODE_ENV for production

Scheduled Pinned Locked Moved Solved Etherpad Lite
7 Posts 4 Posters 420 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sparkwise
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • luckowL Online
      luckowL Online
      luckow
      translator
      wrote on last edited by
      #2

      I never thought about it. Is there a difference in = production?

      Pronouns: he/him | Primary language: German

      1 Reply Last reply
      0
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #3

        See if there is a .env file

        Conscious tech

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sparkwise
          wrote on last edited by
          #4

          It looks like Cloudron is trying to set NODE_ENV=production in start.sh:57, but this clearly isn't working based on what is in the logs.

          @robi Adding a .env file with NODE_ENV=production unfortunately 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

          1 Reply Last reply
          1
          • robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #5

            Hmm the start script uses gosu which runs as a different user which may prevent the env from following

            It also runs pnpm dev, which may override?

            Conscious tech

            1 Reply Last reply
            0
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #6

              Latest package was fixed to use node production mode. Usually this doesn't really do much, but at least the warning is gone.

              S 1 Reply Last reply
              0
              • nebulonN nebulon marked this topic as a question on
              • nebulonN nebulon has marked this topic as solved on
              • nebulonN nebulon

                Latest package was fixed to use node production mode. Usually this doesn't really do much, but at least the warning is gone.

                S Offline
                S Offline
                sparkwise
                wrote on last edited by
                #7

                @nebulon I see. Thank you!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search