Skip to content

Commit

Permalink
grep go run
Browse files Browse the repository at this point in the history
  • Loading branch information
mxfactorial committed May 14, 2023
1 parent c449431 commit 86e4614
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ restart-dev:
$(MAKE) dev

list-pids:
@ps aux | grep -e "cargo-watch" | grep -v 'grep' | awk '{len=split($$14, a, "/"); print $$2" "a[len-1]}'
@ps aux | grep -e ".bin/vite dev" | grep -v 'grep' | awk '{print $$2" client"}'
@ps aux | grep -e 'cargo-watch' -e 'go run \./' | grep -v 'grep' | awk '{len=split($$14, a, "/"); print $$2" "a[len-1]}'
@ps aux | grep -e ''.bin/vite dev' | grep -v 'grep' | awk '{print $$2" client"}'

###################### docker ######################

Expand Down
2 changes: 1 addition & 1 deletion scripts/start-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ for d in "${APP_DIRS[@]}"; do
(cd "$d"; eval $(cat $ENV_FILE_NAME) go run ./$BUILD_SRC_PATH > /dev/null 2>&1 & disown $!)
fi
ps aux | grep -e "go run" | grep -v 'grep'
ps aux | grep -e "go-build" | 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
Expand Down
1 change: 1 addition & 0 deletions test/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ get-secrets:
bash scripts/create-env-file.sh \
--app-name $(APP_NAME) \
--env $(ENV)

0 comments on commit 86e4614

Please sign in to comment.