Skip to content

Commit

Permalink
ps aux
Browse files Browse the repository at this point in the history
  • Loading branch information
mxfactorial committed May 14, 2023
1 parent faa34ff commit c449431
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/restart-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
PROJECT_CONF=project.yaml
REQUIRED_PID_COUNT=$(yq '.scripts.env_var.set.REQUIRED_PID_COUNT.default' $PROJECT_CONF)
REQUIRED_CI_PID_COUNT=$(($REQUIRED_PID_COUNT-1))
LOCAL_RESTART_LIMIT=$(yq '.scripts.env_var.set.LOCAL_RESTART_LIMIT.default' $PROJECT_CONF)
# LOCAL_RESTART_LIMIT=$(yq '.scripts.env_var.set.LOCAL_RESTART_LIMIT.default' $PROJECT_CONF)
LOCAL_RESTART_LIMIT=1
RESTART_COUNT=1
RESTART_SLEEP_SECONDS=$(yq '.scripts.env_var.set.RESTART_SLEEP_SECONDS.default' $PROJECT_CONF)
RED='\033[0;31m'
Expand Down
4 changes: 3 additions & 1 deletion scripts/start-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ for d in "${APP_DIRS[@]}"; do
echo -e -n "\n${GREEN}*** starting $d${RESET}\n"
(cd "$d"; eval $(cat $ENV_FILE_NAME) go run ./$BUILD_SRC_PATH > /dev/null 2>&1 & disown $!)
fi
make list-pids
ps aux | grep -e "go run" | grep -v 'grep'
ps aux | grep -e "go-build" | grep -v 'grep'
make --no-print-directory list-pids
else
make --no-print-directory -C "$d" dev
fi
Expand Down
1 change: 0 additions & 1 deletion test/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ get-secrets:
bash scripts/create-env-file.sh \
--app-name $(APP_NAME) \
--env $(ENV)

0 comments on commit c449431

Please sign in to comment.