Static GitHub Issues

[1631] can't run bash script after production build

prev: If the routing rewrite in the middleware, rather than 301 and 302 of the redirection
next: [BUG] Unable to use `this` inside `asyncData`

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. screenshot from 2017-09-10 11-25-56

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>