• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.2k 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.
  • 史 Offline
    史新瑞 @sdetweil
    last edited by Jul 26, 2022, 1:25 PM

    @sdetweil Can you do this by modifying the serve.js file or the main.js file

    S 1 Reply Last reply Jul 26, 2022, 1:28 PM Reply Quote 0
    • S Offline
      sdetweil @史新瑞
      last edited by Jul 26, 2022, 1:28 PM

      @史新瑞 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 Jul 26, 2022, 1:28 PM

        @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 Jul 26, 2022, 1:30 PM Reply Quote 0
        • S Offline
          sdetweil @史新瑞
          last edited by Jul 26, 2022, 1:30 PM

          @史新瑞 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 Jul 26, 2022, 1:32 PM Reply Quote 0
          • 史 Offline
            史新瑞 @sdetweil
            last edited by Jul 26, 2022, 1:32 PM

            @sdetweil Thank you. I’ll try it now

            1 Reply Last reply Reply Quote 0
            • P Offline
              plainbroke @史新瑞
              last edited by Jul 28, 2022, 7:03 PM

              @史新瑞 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 Jul 29, 2022, 12:10 PM Reply Quote 0
              • 史 Offline
                史新瑞 @plainbroke
                last edited by Jul 29, 2022, 12:10 PM

                @plainbroke Thank you

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