mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 11:32:56 +00:00 
			
		
		
		
	Extend magic starter to be able to do more... well, magic
This commit is contained in:
		@@ -49,8 +49,26 @@ build_and_run_backend()
 | 
				
			|||||||
    run_backend
 | 
					    run_backend
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
trap 'exit' INT TERM
 | 
					start_tfw()
 | 
				
			||||||
trap 'kill 0' EXIT
 | 
					{
 | 
				
			||||||
build_baseimage
 | 
					    trap 'exit' INT TERM
 | 
				
			||||||
run_frontend & build_and_run_backend
 | 
					    trap 'kill 0' EXIT
 | 
				
			||||||
wait
 | 
					    build_baseimage
 | 
				
			||||||
 | 
					    run_frontend & build_and_run_backend
 | 
				
			||||||
 | 
					    wait
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					case $1 in
 | 
				
			||||||
 | 
					    start)
 | 
				
			||||||
 | 
					        start_tfw
 | 
				
			||||||
 | 
					    ;;
 | 
				
			||||||
 | 
					    build)
 | 
				
			||||||
 | 
					        build_backend
 | 
				
			||||||
 | 
					    ;;
 | 
				
			||||||
 | 
					    buildtfw)
 | 
				
			||||||
 | 
					        build_baseimage
 | 
				
			||||||
 | 
					    ;;
 | 
				
			||||||
 | 
					    *)
 | 
				
			||||||
 | 
					        echo "Usage: tfw_magic_start.sh [start|build|buildtfw]"
 | 
				
			||||||
 | 
					    ;;
 | 
				
			||||||
 | 
					esac
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user