Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

262
Views
Running the server in Local Machine without showing cmd the window

I' ve created my node.js app with express, now i want to upload it on my local server machine. I've created a bat file (I will use task planner to run this) that basically move to folder app and launch "npm run start".

The question is: There's a more correct way to this? (no cloud) and is it possible to hide the cmd window?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Putting a node.js application to production can be done with pm2. Pm2 will spin up your application and keep it alive, without having any terminal/cmd open.

Simply install pm2 globally on your machine:

$ npm install pm2 -g

Then launch your application with pm2:

$ pm2 start app.js

There are some configurations you could do, so I suggest you look at their repo

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!