mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-12-05 01:31:33 +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
|
||||
}
|
||||
|
||||
start_tfw()
|
||||
build_and_start_tfw()
|
||||
{
|
||||
trap 'exit' INT TERM
|
||||
trap 'kill 0' EXIT
|
||||
@ -58,17 +58,28 @@ start_tfw()
|
||||
wait
|
||||
}
|
||||
|
||||
start_tfw()
|
||||
{
|
||||
trap 'exit' INT TERM
|
||||
trap 'kill 0' EXIT
|
||||
run_frontend & run_backend
|
||||
wait
|
||||
}
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
start_tfw
|
||||
buildtfw)
|
||||
build_baseimage
|
||||
;;
|
||||
build)
|
||||
build_backend
|
||||
;;
|
||||
buildtfw)
|
||||
build_baseimage
|
||||
start)
|
||||
start_tfw
|
||||
;;
|
||||
buildstart)
|
||||
build_and_start_tfw
|
||||
;;
|
||||
*)
|
||||
echo "Usage: tfw.sh [start|build|buildtfw]"
|
||||
echo "Usage: tfw.sh [buildtfw|build|start|buildstart]"
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user