| red=$(tput setaf 1) |
| green=$(tput setaf 2) |
| reset=$(tput sgr0) |
| |
| skipCompilation=false |
| while getopts s flag |
| do |
| case "${flag}" in |
| s) skipCompilation=true;; |
| *) exit 1 |
| esac |
| done |
| |
| if ! $skipCompilation |
| then |
| echo "${green}Compiling Services...${reset}" |
| bash scripts/build-services.sh |
| echo "${green}Services compiled.${reset}" |
| |
| echo "${green}Compiling GUI...${reset}" |
| cd gui && yarn install && ng build --configuration production --deploy-url=/ --base-href=/ |
| echo "${green}GUI compiled.${reset}" |
| echo |
| cd .. |
| fi |
| |
| echo "${green}Starting TexeraWebApplication in daemon...${reset}" |
| setsid nohup ./scripts/server.sh >/dev/null 2>&1 & |
| echo "${green}Waiting TexeraWebApplication to launch on 8080...${reset}" |
| while ! nc -z localhost 8080; do |
| sleep 0.1 # wait 100ms before check again |
| done |
| echo "${green}TexeraWebApplication launched at $(pgrep -f TexeraWebApplication)${reset}" |
| echo |
| |
| echo "${green}Starting WorkflowCompilingService in daemon...${reset}" |
| setsid nohup ./scripts/workflow-compiling-service.sh >/dev/null 2>&1 & |
| echo "${green}Waiting TexeraWorkflowCompilingService to launch on 9090...${reset}" |
| while ! nc -z localhost 9090; do |
| sleep 0.1 # wait 100ms before check again |
| done |
| echo "${green}WorkflowCompilingService launched at $(pgrep -f TexeraWorkflowCompilingService)${reset}" |
| echo |
| |
| echo "${green}Starting FileService in daemon...${reset}" |
| setsid nohup ./scripts/file-service.sh >/dev/null 2>&1 & |
| echo "${green}Waiting FileService to launch on 9092...${reset}" |
| while ! nc -z localhost 9092; do |
| sleep 0.1 # wait 100ms before check again |
| done |
| echo "${green}FileService launched at $(pgrep -f FileService)${reset}" |
| echo |
| |
| echo "${green}Starting WorkflowComputingUnit in daemon...${reset}" |
| setsid nohup ./scripts/workflow-computing-unit.sh >/dev/null 2>&1 & |
| echo "${green}Waiting WorkflowComputingUnit to launch on 8085...${reset}" |
| while ! nc -z localhost 8085; do |
| sleep 0.1 # wait 100ms before check again |
| done |
| echo "${green}WorkflowComputingUnit launched at $(pgrep -f WorkflowComputingUnit)${reset}" |
| echo |
| |
| echo "${green}Starting shared editing server...${reset}" |
| setsid nohup ./scripts/shared-editing-server.sh >/dev/null 2>&1 & |
| sleep 2 |
| echo "${green}Shared Editing Server launched at $(pgrep -f y-websocket)${reset}" |