From c3361f6ce0e69765ea449751ccef248e221069aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 23 Mar 2018 17:57:20 +0100 Subject: [PATCH] Remove magic start sh, as it is included in the test-tutorial-framework repo --- tfw_magic_start.sh | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 tfw_magic_start.sh diff --git a/tfw_magic_start.sh b/tfw_magic_start.sh deleted file mode 100755 index 7c594a7..0000000 --- a/tfw_magic_start.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash -set -e - -[ "$(uname)" == "Darwin" ] && readlink_cmd="greadlink" || readlink_cmd="readlink" -SCRIPT_DIR="$(dirname $($readlink_cmd -f $0))" - -TAO_PATH="${TAO_PATH:-$SCRIPT_DIR/..}" -BACKEND_REPO="${BACKEND_REPO:-tutorial-framework-wip}" -FRONTEND_REPO="${FRONTEND_REPO:-tutorial-framework-ng}" -BACKEND_PATH="${TAO_PATH}/${BACKEND_REPO}" -FRONTEND_PATH="${TAO_PATH}/${FRONTEND_REPO}" - -IMAGE_NAME="${IMAGE_NAME:-tfw}" -BACKEND_PORT="${BACKEND_PORT:-8888}" -AVATAO_SECRET="${AVATAO_SECRET:-secret}" - -function run_frontend() -{ - cd $FRONTEND_PATH - yarn start -} - -function run_backend() -{ - cd $BACKEND_PATH - docker build -t $IMAGE_NAME . - docker run --rm -p $BACKEND_PORT:$BACKEND_PORT -e AVATAO_SECRET=$AVATAO_SECRET $IMAGE_NAME -} - -trap 'exit' INT TERM -trap 'kill 0' EXIT -run_frontend & run_backend -wait