mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 13:55:08 +00:00
case can be really annoying
This commit is contained in:
parent
c5daea64ad
commit
56cf9f546c
1 changed files with 6 additions and 5 deletions
11
dbench
11
dbench
|
|
@ -33,7 +33,7 @@ function frappe_installer {
|
|||
|
||||
add=0
|
||||
setup=0
|
||||
d=0
|
||||
up=0
|
||||
start=0
|
||||
init=0
|
||||
dev=0
|
||||
|
|
@ -63,7 +63,7 @@ key="$1"
|
|||
cmd=1
|
||||
;;
|
||||
-u)
|
||||
d=1
|
||||
up=1
|
||||
;;
|
||||
-m)
|
||||
mgr=1
|
||||
|
|
@ -86,12 +86,13 @@ key="$1"
|
|||
esac
|
||||
shift
|
||||
done
|
||||
set -- "${POSITIONAL[@]}"
|
||||
set -- "${positional[@]}"
|
||||
|
||||
site="$1"
|
||||
|
||||
if [ $setup == 1 ]; then
|
||||
docker-compose build
|
||||
if [ $d == 1 ]; then
|
||||
if [ $up == 1 ]; then
|
||||
docker-compose up -d
|
||||
else
|
||||
docker-compose up
|
||||
|
|
@ -116,7 +117,7 @@ if [ $init == 1 ]; then
|
|||
echo "finished"
|
||||
fi
|
||||
|
||||
if [ $d == 1 ]; then
|
||||
if [ $dev == 1 ]; then
|
||||
docker exec -it -u root frappe bash -c "bench --site $site set-config \"developer_mode\" 1 && bench clear-cache"
|
||||
fi
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue