2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-10 07:11:00 +00:00
frappe_docker/build/common/worker/install_app.sh

17 lines
302 B
Bash
Raw Normal View History

#!/bin/bash
APP_NAME=${1}
APP_REPO=${2}
2020-03-04 03:33:23 +00:00
APP_BRANCH=${3}
cd /home/frappe/frappe-bench/
. env/bin/activate
2020-03-06 06:29:12 +00:00
cd ./apps
2020-03-04 03:33:23 +00:00
[ "${APP_BRANCH}" ] && \
BRANCH="-b ${APP_BRANCH}"
git clone --depth 1 -o upstream ${APP_REPO} ${BRANCH}
2020-03-06 06:29:12 +00:00
pip3 install --no-cache-dir -e /home/frappe/frappe-bench/apps/${APP_NAME}