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.

    Automatically terminate the process after NPM Run serve

    Scheduled Pinned Locked Moved Troubleshooting
    10 Posts 3 Posters 1.4k Views 3 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.
    • S Offline
      sdetweil @史新瑞
      last edited by

      @史新瑞 you do not touch our .js files…

      just change the mm.sh to

      npm run serve
      

      instead of

      npm start 
      

      then everything is the same

      MagicMirror ‘app’ to pm2 is ~/MagicMirror/installers/mm.sh

      pm2 start MagicMirror
      pm2 stop MagicMirror
      pm2 restart MagicMirror

      on reboot
      pm2 starts MagicMirror

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • 史 Offline
        史新瑞 @sdetweil
        last edited by

        @sdetweil I am a Chinese and my English is not very good. I can only communicate with you through translation software. I am very glad to meet you and honored to get your guidance

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @史新瑞
          last edited by

          @史新瑞 understand… I cannot speak or read Chinese either!..

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          史 1 Reply Last reply Reply Quote 0
          • 史 Offline
            史新瑞 @sdetweil
            last edited by

            @sdetweil Thank you. I’ll try it now

            1 Reply Last reply Reply Quote 0
            • plainbrokeP Offline
              plainbroke @史新瑞
              last edited by

              @史新瑞 said in Automatically terminate the process after NPM Run serve:

              Hello everyone, after NPM run serve you need CTRL + C or something to stop the process, but I want it to stop automatically, what should I do

              Try putting a space then & that works for me on a couple of different projects I am running. Like my DHCP server Hope it helps.

              Slow learner. But trying anyways.

              史 1 Reply Last reply Reply Quote 0
              • 史 Offline
                史新瑞 @plainbroke
                last edited by

                @plainbroke Thank you

                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