I have an Vue application created with vue-cli (vue create my_app
).
It runs normally when I open the terminal, run the command npm run serve
and access localhost:8080, but it stopped when I close the terminal.
How can I keep the program running when the terminal is closed ?. I have tried to use pm2 and node-windows but without success.
package.json:
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
}