I was able to automate nuxt apps deployments to production, deployments are done this ease > i'm running this simple bash script on production server:
cd /home/user/app
git pull origin master
yarn
npm run build
pm2 restart "app"
for now the build command for nuxt has no end, so i can not restart the node server after building the app.
how to fix it?
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1454">#c1454</a>)</em></sub></div>