How to run node.js application using process Manager forever + development.json?

Compile/start the server via SSH so

$ yarn buil
$ yarn start serve


In package.json on the host was

package.json

.
 "license": "MIT",
 "private": true,
 "scripts": {
 "serve": "vue-cli-service serve",
 "build": "vue-cli-build service"
},
.


I decided to use the process Manager.
Established forever, set up development.json, corrected package.json

package.json

.
 "license": "MIT",
 "private": true,
 "scripts": {
 "serve": "vue-cli-service serve",
 "build": "vue-cli-service build",
 "app": "node ./node_modules/forever start ./development.json"
},
.


development.json

{
 "uid": "app",
 "append": true,
 "watch": true,
 "watchDirectory": "dist/",
 "script": "",
 "sourceDir": "/",
 "command": "start yarn serve"
 }


In the end, enter the command SSH $ yarn app

4FZe3.png

but the server is not up...
Tell me how to implement in my case?
April 4th 20 at 13:12
0 answer

Find more questions by tags Vue.js