17 lines
298 B
Bash
17 lines
298 B
Bash
APPS=$@
|
|
|
|
if [[ $# -eq 1 ]]; then
|
|
if [[ $1 == "--all" || $1 == "-a" ]]; then
|
|
APPS=$(ls -d */)
|
|
fi
|
|
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
|