From 1790a84430a7b4532a1345d851b5b8e0ed197f83 Mon Sep 17 00:00:00 2001 From: Pitu Date: Fri, 15 Mar 2019 07:53:05 +0000 Subject: add restart at the end of update command --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index fb1ad6a..e6932e3 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "seed": "yarn knex seed:run", "api": "node src/api/structures/Server", "site": "cross-env NODE_ENV=production nuxt start", - "update": "git pull && yarn install && yarn migrate && yarn build" + "update": "git pull && yarn install && yarn migrate && yarn build && yarn restart", + "restart": "pm2 restart lolisafe-api && pm2 restart lolisafe-website" }, "repository": { "type": "git", -- cgit v1.2.3