fxa/_scripts/pm2-all.sh

14 строки
230 B
Bash
Executable File

#!/bin/bash -e
DIR=$(dirname "$0")
COMMAND=$1
cd "$DIR"
echo "running ${COMMAND} fxa services..."
for d in ../packages/*/ ; do
if [[ -r "${d}pm2.config.js" ]]; then
(cd "$d" && npm "$COMMAND" > /dev/null)
fi
done
pm2 ls