How to make sure expressjs start correctly at first run before running it forever

42 views Asked by At

I have a server using expressjs and the forever package (https://www.npmjs.com/package/forever) to keep the server always running.

I have a problem: when the server starts, it should be off if there is any config wrong, but the forever package always restarts it. How to make sure the server starts correctly (can be off at first run) and run forever if the config is right?

The config I mentioned is gotten from AWS

0

There are 0 answers