Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张浩
/
br-client
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
Commit
52303e84
...
52303e842b81231043aeadb40cc0aacbbd9b8b4b
authored
2020-09-04 10:58:14 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
13afc15c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
publish.sh
publish.sh
0 → 100755
View file @
52303e8
1
#!/bin/sh
2
port
=
8090
3
lsof -i :
$port
| awk
'{print $2}'
> tmp
4
pid
=
$(
awk
'NR==2{print}'
tmp
)
;
5
echo
"
$pid
"
6
if
[
-n
"
$pid
"
]
;
then
7
kill
-9
$pid
;
8
echo
"success"
9
fi
10
11
nohup npm run dev > client.log &
12
lsof -i :
$port
Please
register
or
sign in
to post a comment