Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yichengstreet-be
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yichengstreet
yichengstreet-be
Commits
20b56ef9
You need to sign in or sign up before continuing.
Commit
20b56ef9
authored
Sep 12, 2025
by
yuxiaodi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
5274c301
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
Makefile
Makefile
+20
-2
No files found.
Makefile
View file @
20b56ef9
# Ruoyi 项目 Makefile
# Ruoyi 项目 Makefile
APP_PORT
=
$
(
or
$(APP_PORT_1)
,8000
)
.PHONY
:
build clean test
.PHONY
:
build clean test
...
@@ -44,4 +45,21 @@ install:
...
@@ -44,4 +45,21 @@ install:
# 启动应用(依赖 install)
# 启动应用(依赖 install)
run
:
run
:
@
echo
"启动 ruoyi-admin 应用..."
@
echo
"启动 ruoyi-admin 应用..."
cd
ruoyi-admin
&&
mvn
-s
/workspace/settings.xml spring-boot:run
cd
/workspace/ruoyi-admin
&&
mvn
-s
/workspace/settings.xml spring-boot:run &
@
echo
"应用已启动"
# 停止命令
.PHONY
:
stop
stop
:
@
echo
"正在停止..."
@
if
command
-v
lsof
>
/dev/null 2>&1
;
then
\
echo
"使用 lsof 命令停止应用..."
;
\
lsof
-ti
:
$(APP_PORT)
| xargs
kill
-9
2>/dev/null
||
echo
"没有找到运行在端口
$(APP_PORT)
的进程"
;
\
elif
command
-v
ss
>
/dev/null 2>&1
;
then
\
echo
"使用 ss 命令停止应用..."
;
\
ss
-ltnp
|
grep
':
$(APP_PORT)
'
|
awk
'{print $7}'
|
sed
's/.*pid=\([0-9]*\).*/\1/'
| xargs
kill
2>/dev/null
||
echo
"没有找到运行在端口
$(APP_PORT)
的进程"
;
\
else
\
echo
"❌ 错误:系统中没有找到 lsof 或 ss 命令"
;
\
exit
1
;
\
fi
@
echo
"✅ 系统已停止"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment