Skip to content

Instantly share code, notes, and snippets.

@yuhangch
Created February 14, 2022 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuhangch/fc9c9f392d570860c4d119318292b23e to your computer and use it in GitHub Desktop.
Save yuhangch/fc9c9f392d570860c4d119318292b23e to your computer and use it in GitHub Desktop.
git pull / kill previous app / reload
cd app-dir
git pull
ps -ef| grep "dotnet run$" | tr -s " " | cut -d " " -f 2 | xargs kill
nohup dotnet run &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment