server_config/deploy.sh

15 lines
259 B
Bash

APPS=$@
if [[ $1 == "*" && $# -eq 1 ]]; then
APPS=$(ls .)
fi
for app in "$APPS"
do
echo "[server_config] > Deploying: $app"
source "./$app/_deploy.sh" \
&& echo "[server_config] > Deploy done" \
|| echo "[server_config] > Deploy failed"
done