0

I was wondering if anyone had some insight on running a Node API app built with Express. I built a set of API end points using Express and I uploaded the Node app to my server on A Small Orange. The issue is that once I start the app through my terminal I have to keep the terminal open and my computer on in order to keep the API end points up and running.

I started to experiment with the npm forever-monitor, but it keeps crashing when I run express and forever-monitor in the same app.

Any insight would be appreciated.

Thanks,

Max Baldwin
  • 3,404
  • 3
  • 26
  • 40

1 Answers1

1

Install forever

npm install -g forever

then run your app

forever start app.js

and see

forever --help

for options and more...

diproart
  • 762
  • 6
  • 13