mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-14 00:54:07 +00:00
18 lines
319 B
Bash
18 lines
319 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
set -x
|
||
|
|
||
|
APP=$1 BRANCH=$2 GIT_URL=$3
|
||
|
|
||
|
cd /home/frappe/frappe-bench
|
||
|
|
||
|
if test "$BRANCH" && test "$GIT_URL"; then
|
||
|
# Clone in case not copied manually
|
||
|
git clone --depth 1 -b "$BRANCH" "$GIT_URL" "apps/$APP"
|
||
|
rm -r "apps/$APP/.git"
|
||
|
fi
|
||
|
|
||
|
env/bin/pip install -e "apps/$APP"
|
||
|
|
||
|
echo "$APP" >>sites/apps.txt
|