frappe_docker/build/common/worker/install_app.sh
2021-04-20 07:32:24 +05:30

22 lines
418 B
Bash
Executable file

#!/bin/bash
APP_NAME=${1}
APP_REPO=${2}
APP_BRANCH=${3}
cd /home/frappe/frappe-bench/
. env/bin/activate
cd ./apps
[ "${APP_BRANCH}" ] && BRANCH="-b ${APP_BRANCH}"
git clone --depth 1 -o upstream ${APP_REPO} ${BRANCH} ${APP_NAME}
# Do not install frappe
sed -i '/frappe/d' ${APP_NAME}/requirements.txt
pip3 install --no-cache-dir -e /home/frappe/frappe-bench/apps/${APP_NAME}
cd ${APP_NAME} && git checkout .