A simple Bookshelf app backend [REST API] with AWS EC2 Instance, stay server active with process manager
$ {NODE_PORT, NODE_ENV=?}pm2 start npm --name "bookshelf-api" -- run "start-prod"
$ pm2 restart bookshelf-api
$ pm2 stop bookshelf-api
$ pm2 start bookshelf-api
- ssh into nginx VM using vagrant cli vagrant ssh nginx
- run app using pm2 pm2 start index.js --name "{app-name}" -- {port} {app-name} Example : pm2 start index.js --name "app-01" -- 3022 app-1