mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-11-14 16:37:18 +00:00
Add options to build and start tfw separatly
This commit is contained in:
parent
9954764916
commit
20ce2cb069
23
hack/tfw.sh
23
hack/tfw.sh
@ -49,7 +49,7 @@ build_and_run_backend()
|
|||||||
run_backend
|
run_backend
|
||||||
}
|
}
|
||||||
|
|
||||||
start_tfw()
|
build_and_start_tfw()
|
||||||
{
|
{
|
||||||
trap 'exit' INT TERM
|
trap 'exit' INT TERM
|
||||||
trap 'kill 0' EXIT
|
trap 'kill 0' EXIT
|
||||||
@ -58,17 +58,28 @@ start_tfw()
|
|||||||
wait
|
wait
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_tfw()
|
||||||
|
{
|
||||||
|
trap 'exit' INT TERM
|
||||||
|
trap 'kill 0' EXIT
|
||||||
|
run_frontend & run_backend
|
||||||
|
wait
|
||||||
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
buildtfw)
|
||||||
start_tfw
|
build_baseimage
|
||||||
;;
|
;;
|
||||||
build)
|
build)
|
||||||
build_backend
|
build_backend
|
||||||
;;
|
;;
|
||||||
buildtfw)
|
start)
|
||||||
build_baseimage
|
start_tfw
|
||||||
|
;;
|
||||||
|
buildstart)
|
||||||
|
build_and_start_tfw
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: tfw.sh [start|build|buildtfw]"
|
echo "Usage: tfw.sh [buildtfw|build|start|buildstart]"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user