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}