Skip to content
  • This project
    • Loading...
  • Sign in

张浩 / br-client

Global
Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • br-client
  • publish.sh
  • 张浩's avatar
    commit · 23fad3a5
    23fad3a5
    张浩 authored 2022-01-25 14:07:21 +0800
publish.sh 234 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh
port=8090
lsof -i :$port | awk '{print $2}'> tmp
pid=$(awk 'NR==2{print}' tmp);
#echo "$pid"
if [ -n "$pid" ];  then
  kill -9 $pid;
  echo "success"
fi

#nohup npm run dev > client.log &
nohup npm run dev >/dev/null 2>&1 &