How to move the nodejs files to the server using forever?

I am new to Node.js as I am trying to move the Node.js files to a server using forever.

I have created the Node.js files using npm i express-generator so when I use nodemon it is starting like this:

node ./bin/www "app"

So, I have used forever npm and trying to start, but I am unable to do it. How to start it and run if I move this files to a server?

My package.json file is like:

 "scripts": {
        "start": "node ./bin/www"
    },

1 thought on “How to move the nodejs files to the server using forever?”

Leave a Comment