From a8f96d0c6188be5c61c81f843674056ea639e2be Mon Sep 17 00:00:00 2001 From: Muhammad Abdulhadi Date: Mon, 8 Nov 2021 15:13:49 +0200 Subject: [PATCH] add heroku postbuild script --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1b37f5b..d3ed4bd 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "start": "cross-env NODE_ENV=production node server", "dev": "cross-env NODE_ENV=development nodemon server", "test": "cross-env NODE_ENV=test jest --runInBand", - "build:db": "cross-env NODE_ENV=development node server/database/config" + "build:db": "cross-env NODE_ENV=development node server/database/config", + "heroku-postbuild": "cd client && npm install && npm run build" }, "repository": { "type": "git",