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.

    autostart + serveronly

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 2 Posters 817 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.
    • J Offline
      JohnGalt
      last edited by

      I have a new MM instance for development and testing in an Ubuntu VM. My goal is to have MM autostart when the VM starts, and run in serveronly mode, since the VM has no console display…

      I ran Sam’s script to install the instance, then went back and ran the autostart script, but it appears to start a regular MM instance and not a serveronly. I have uncommented the serverOnly command in config.js, set it to “true” and rebooted. It appears the regular instance of MM starts, but not the serveronly. I CAN manually start MM with ‘node serveronly’, but then it looks like two instances are running.

      Where am I going wrong?

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

        @johngalt pm2 startup starts installers/mm.sh

        just change the mm.sh from

        npm start
        to
        npm run server

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JohnGalt @sdetweil
          last edited by

          @sdetweil - thanks! I figured it just had to be something straightforward. I appreciate you pointing me to the right place.

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

            @johngalt just for info.

            pm2 info MagicMirror
            (or whatever named task pm2 has defined)

            will tell you what it starts, and a bunch of other info

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              JohnGalt @sdetweil
              last edited by

              @sdetweil - Thanks Sam. That is what I had done, and so knew there were two instances running. I appreciate the tip and reminder.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • 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