mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-08 22:31:07 +00:00
fix: install_app set branch
This commit is contained in:
parent
4b87e50779
commit
d00770e42f
@ -10,8 +10,7 @@ cd /home/frappe/frappe-bench/
|
|||||||
|
|
||||||
cd ./apps
|
cd ./apps
|
||||||
|
|
||||||
[ "${APP_BRANCH}" ] && \
|
[ "${APP_BRANCH}" ] && BRANCH="-b ${APP_BRANCH}"
|
||||||
BRANCH="-b ${APP_BRANCH}"
|
|
||||||
|
|
||||||
git clone --depth 1 -o upstream ${APP_REPO} ${BRANCH}
|
git clone --depth 1 -o upstream ${APP_REPO} ${BRANCH}
|
||||||
pip3 install --no-cache-dir -e /home/frappe/frappe-bench/apps/${APP_NAME}
|
pip3 install --no-cache-dir -e /home/frappe/frappe-bench/apps/${APP_NAME}
|
@ -4,8 +4,7 @@ APP_NAME=${1}
|
|||||||
APP_REPO=${2}
|
APP_REPO=${2}
|
||||||
APP_BRANCH=${3}
|
APP_BRANCH=${3}
|
||||||
|
|
||||||
[ "${APP_BRANCH}" ] && \
|
[ "${APP_BRANCH}" ] && BRANCH="-b ${APP_BRANCH}"
|
||||||
BRANCH="-b ${APP_BRANCH}"
|
|
||||||
|
|
||||||
cd /home/frappe/frappe-bench
|
cd /home/frappe/frappe-bench
|
||||||
mkdir -p /home/frappe/frappe-bench/sites
|
mkdir -p /home/frappe/frappe-bench/sites
|
||||||
@ -13,7 +12,7 @@ echo "frappe\n${APP_NAME}" > /home/frappe/frappe-bench/sites/apps.txt
|
|||||||
|
|
||||||
install_packages git python2
|
install_packages git python2
|
||||||
|
|
||||||
mkdir -p apps sites/assets
|
mkdir -p apps sites/assets
|
||||||
cd apps
|
cd apps
|
||||||
git clone --depth 1 https://github.com/frappe/frappe ${BRANCH}
|
git clone --depth 1 https://github.com/frappe/frappe ${BRANCH}
|
||||||
git clone --depth 1 ${APP_REPO} ${BRANCH}
|
git clone --depth 1 ${APP_REPO} ${BRANCH}
|
||||||
|
Loading…
Reference in New Issue
Block a user