Commit 3c283701 authored by David Trattnig's avatar David Trattnig
Browse files

Cleanup.

parent 934175af
#!/bin/bash
#
# Run Script for AURA Web (Steering | Dashboard | Tank)
# CLI for AURA SysOps
#
# Production: `./run.sh aura`
# Development `./run.sh aura local`
#
component="aura"
env="production"
docker="false"
if [[ $* =~ ^(steering|dashboard|tank)$ ]]; then
component=$1
fi
if [[ "$1" == *"docker:"* ]]; then
docker="true"
component=${1#*:}
fi
if [[ "$2" =~ ^(local|dev|development)$ ]]; then
env="development"
fi
echo "[ Run component=$component ]"
echo "[ Environment=$env ]"
echo "[ Docker=$docker ]"
# +++ NATIVE COMMANDS +++ #
if [[ $docker == "false" ]]; then
### Runs AURA Web (Steering, Dashboard, Tank) ###
if [[ $component == "aura" ]]; then
if [[ $env == "production" ]]; then
# Steering
(
cd ../steering
./run.sh docker:serve
)
# Dashboard
# Nothing to do - In production Dashboard is already statically served via Apache/Nginx
# Tank
(
cd ../tank
./run.sh docker:serve
)
fi
if [[ $env == "development" ]]; then
# Steering
(
cd ../steering
./run.sh &>/dev/null &
)
# Dashboard
(
cd ../dashboard
./run.sh &>/dev/null &
)
# Tank
(
cd ../tank
./run.sh &>/dev/null &
)
fi
fi
fi
# +++ DOCKER COMMANDS +++ #
if [[ $docker == "true" ]]; then
echo "-404-"
fi
\ No newline at end of file
echo "WIP - see https://gitlab.servus.at/aura/meta/-/issues/59"
\ No newline at end of file
#!/bin/sh
echo "--- INITIALIZING PROJECTS ---"
# Check if steering is already set-up
if test -f "../../steering"; then
echo "Project folder 'steering' is already available! Skipping..."
else
git clone https://gitlab.servus.at/autoradio/steering.git ../steering
fi
# Check if dashboard is already set-up
if test -f "../../dashboard"; then
echo "Project folder 'dashboard' is already available! Skipping..."
else
git clone https://gitlab.servus.at/autoradio/dashboard.git ../dashboard
fi
# Check if tank is already set-up
# if test -f "../../tank"; then
# echo "Project folder 'tank' is already available! Skipping..."
# else
# git clone https://gitlab.servus.at/autoradio/tank.git ../tank
# fi
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment