From e8f590db3d03e54856bd01dafa4cfccf40537b32 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Sun, 21 Feb 2021 07:38:18 +0530 Subject: [PATCH] fix(erpnext-nginx): install erpnext or custom app dependencies --- build/erpnext-nginx/install_app.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build/erpnext-nginx/install_app.sh b/build/erpnext-nginx/install_app.sh index f1c71860..a0d7d42d 100755 --- a/build/erpnext-nginx/install_app.sh +++ b/build/erpnext-nginx/install_app.sh @@ -15,9 +15,20 @@ cd apps git clone --depth 1 https://github.com/frappe/frappe ${BRANCH} git clone --depth 1 ${APP_REPO} ${BRANCH} ${APP_NAME} +echo "Install frappe NodeJS dependencies . . ." cd /home/frappe/frappe-bench/apps/frappe yarn +echo "Install ${APP_NAME} NodeJS dependencies . . ." +cd /home/frappe/frappe-bench/apps/${APP_NAME} +yarn +echo "Build browser assets . . ." +cd /home/frappe/frappe-bench/apps/frappe yarn production --app ${APP_NAME} +echo "Install frappe NodeJS production dependencies . . ." +cd /home/frappe/frappe-bench/apps/frappe +yarn install --production=true +echo "Install ${APP_NAME} NodeJS production dependencies . . ." +cd /home/frappe/frappe-bench/apps/${APP_NAME} yarn install --production=true mkdir -p /home/frappe/frappe-bench/sites/assets/${APP_NAME}