1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-12-05 01:51:31 +00:00

Make function declarations more portable in magic starter

This commit is contained in:
Kristóf Tóth 2018-03-25 16:06:16 +02:00
parent 30746b49e8
commit ff13cf4dcd

View File

@ -18,19 +18,19 @@ BACKEND_PORT="${BACKEND_PORT:-8888}"
AVATAO_SECRET="${AVATAO_SECRET:-secret}"
BUILD_CONTEXT="${BUILD_CONTEXT:-solvable}"
function run_frontend()
run_frontend()
{
cd $FRONTEND_PATH
yarn start
}
function build_baseimage()
build_baseimage()
{
cd $BASEIMAGE_PATH
docker build -t $BASEIMAGE_NAME .
}
function run_backend()
run_backend()
{
cd $BACKEND_PATH
docker build -t $IMAGE_NAME -f ${BUILD_CONTEXT}/Dockerfile --build-arg BUILD_CONTEXT=$BUILD_CONTEXT --build-arg NOFRONTEND=1 .