MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED Faster Reload after changing config.js

    Troubleshooting
    3
    7
    5106
    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.
    • lavolp3
      lavolp3 Module Developer last edited by

      Re: Restarting MM² when config.js file changes

      Currently I am trying a lot of things with the modules on my MagicMirror. Every time I change something in the config.js or in the custom.css I do a

      pm2 restart mm
      

      Unfortunately on a Pi3 this takes some time. I would say about half a minute until everything is reloaded again.
      Isn’t there a faster way to do this. I mean, this is running in electron, isn’t there a way to only “refresh” the page in electron, or reloading modules, or is all this not sufficient?

      How to troubleshoot modules
      MMM-soccer v2, MMM-AVStock

      Mykle1 1 Reply Last reply Reply Quote 0
      • Mykle1
        Mykle1 Project Sponsor Module Developer @lavolp3 last edited by

        @lavolp3

        Control + R will reload the page

        Create a working config
        How to add modules

        justjim1220 1 Reply Last reply Reply Quote 3
        • justjim1220
          justjim1220 Module Developer @Mykle1 last edited by

          @mykle1
          @lavolp3

          Control + R is much faster than restart mm

          "Life's Too Short To Dance With Ugly People"
          Jim Hallock - 1995

          Mykle1 1 Reply Last reply Reply Quote 0
          • Mykle1
            Mykle1 Project Sponsor Module Developer @justjim1220 last edited by

            @justjim1220

            Look up. ^

            Create a working config
            How to add modules

            justjim1220 1 Reply Last reply Reply Quote 1
            • lavolp3
              lavolp3 Module Developer last edited by

              @Mykle1
              @justjim1220
              Thanks!
              I’ve always used SSH, but for that case I’ll connect a keyboard.
              Thinking about working on the mirror alltogether.
              If someone knows a shortcut to open the terminal in the front I’d also appreciate it!

              How to troubleshoot modules
              MMM-soccer v2, MMM-AVStock

              1 Reply Last reply Reply Quote 0
              • justjim1220
                justjim1220 Module Developer @Mykle1 last edited by

                @mykle1

                LOL!!! I seen your answer, I was trying to re-iterate! Like agreeing with you!

                "Life's Too Short To Dance With Ugly People"
                Jim Hallock - 1995

                Mykle1 1 Reply Last reply Reply Quote 0
                • Mykle1
                  Mykle1 Project Sponsor Module Developer @justjim1220 last edited by

                  @justjim1220

                  Allllllllllrighty then! 🙂

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy