MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Change Folder of Logs of PM2 and NPM

    Scheduled Pinned Locked Moved Development
    11 Posts 2 Posters 3.9k Views 2 Watching
    Loading More Posts
    • 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.
    • thgmirrorT Offline
      thgmirror @sdetweil
      last edited by

      @sdetweil but you know, a RAMDisk is volatile, I can’t copy something to a RAMDisk in forehand…it is gone after a reboot.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @thgmirror
        last edited by sdetweil

        @thgmirror then u will have to create target folder on boot…

        note that pm2 stores config info in there too(the jobs it manages) … so it MUST be persistent

        but you could just link the logs folder from the users real .pm2 folder (the stuff that is volatile…)

        well, logs are useful but…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        thgmirrorT 1 Reply Last reply Reply Quote 0
        • thgmirrorT Offline
          thgmirror @sdetweil
          last edited by

          @sdetweil and where is the PM2 start?
          Of course it must be persistant, but I don’t want to change the location of the PM2-configuration.

          S 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @thgmirror
            last edited by

            @thgmirror someplace in the .pm2 folder… no idea myself…

            the .pm2/logs folder I know

            never examined the others

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @thgmirror
              last edited by

              @thgmirror and there is a $HOME/.npm folder for npm, but I have no idea what all is stored there, and what needs to be persistent and not

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 2 / 2
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy