Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
943fb47b
Commit
943fb47b
authored
Jan 30, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加宜宾测试pom
parent
23b7918f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
101 additions
and
4 deletions
+101
-4
base-manager/pom.xml
base-manager/pom.xml
+24
-1
base-manager/src/main/bin/check_server.sh
base-manager/src/main/bin/check_server.sh
+28
-0
base-manager/src/main/bin/shutdown.sh
base-manager/src/main/bin/shutdown.sh
+4
-3
base-manager/src/main/bin/start.sh
base-manager/src/main/bin/start.sh
+1
-0
portal-manager/pom.xml
portal-manager/pom.xml
+22
-0
smart-gateway/pom.xml
smart-gateway/pom.xml
+22
-0
No files found.
base-manager/pom.xml
View file @
943fb47b
...
...
@@ -61,11 +61,33 @@
<skipUi>
true
</skipUi>
</properties>
</profile>
<profile>
<id>
yibin-test
</id>
<properties>
<profiles.active>
yibin-test
</profiles.active>
<profiles.server.path>
/base
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.rabbitmq.host>
192.168.2.169
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.nacos.server-addr>
192.168.2.169:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.log.level>
INFO
</profiles.log.level>
<package.environment>
test
</package.environment>
<skipUi>
true
</skipUi>
</properties>
</profile>
<profile>
<id>
product
</id>
<properties>
<profiles.active>
tes
t
</profiles.active>
<profiles.active>
produc
t
</profiles.active>
<profiles.server.path>
/base
</profiles.server.path>
<profiles.server.port>
17211
</profiles.server.port>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.rabbitmq.host>
192.168.0.251
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
...
...
@@ -87,6 +109,7 @@
<properties>
<profiles.active>
yibin
</profiles.active>
<profiles.server.path>
/base
</profiles.server.path>
<profiles.server.port>
17211
</profiles.server.port>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.rabbitmq.host>
172.15.28.115
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
...
...
base-manager/src/main/bin/check_server.sh
0 → 100644
View file @
943fb47b
#!/bin/bash
PORT
=
"@profiles.server.port@"
PROJECT_NAME
=
"@project.artifactId@"
;
MAIN_CLASS
=
"
$PROJECT_NAME
-@project.version@.jar"
;
SHELL_NAME
=
$0
SHELL_LOG
=
"
${
SHELL_NAME
}
.log"
LOG_DATE
=
'date "+%Y-%m-%d"'
LOG_TIME
=
'date "+%H-%M-%S"'
CDATE
=
$(
date
"+%Y-%m-%d"
)
CTIME
=
$(
date
"+%H-%M-%S"
)
#写日志
writelog
()
{
LOGINFO
=
$1
echo
"
${
CDATE
}
${
CTIME
}
:
${
SHELL_NAME
}
:
${
LOGINFO
}
"
>>
${
SHELL_LOG
}
}
jcpid
=
`
ps
-ef
|
grep
-v
"grep"
|
grep
"
$MAIN_CLASS
"
|
grep
"app.port=
$PORT
"
|
sed
-n
'1P'
|
awk
'{print $2}'
`
if
[
$jcpid
]
;
then
writelog
"The
$PROJECT_NAME
start finished, PID is
$jcpid
"
exit
$SUCCESS
else
writelog
"start service..."
systemctl stop
${
PROJECT_NAME
}
&&
systemctl start
${
PROJECT_NAME
}
fi
base-manager/src/main/bin/shutdown.sh
View file @
943fb47b
#!
/bin/sh
#!/bin/sh
PORT
=
"@profiles.server.port@"
BASEDIR
=
`
dirname
$0
`
BASEDIR
=
`
(
cd
"
$BASEDIR
"
;
pwd
)
`
PROJECT_NAME
=
"@project.artifactId@"
MAIN_CLASS
=
"
$PROJECT_NAME
"
;
SUCCESS
=
0
FAIL
=
9
if
[
!
-n
"
$PORT
"
]
;
then
echo
$"Usage:
$0
{port}"
exit
$FAIL
...
...
@@ -14,7 +15,7 @@ fi
pid
=
`
ps ax |
grep
-i
"
$MAIN_CLASS
"
|
grep
java |
grep
-v
grep
|
awk
'{print $1}'
`
if
[
-z
"
$pid
"
]
;
then
echo
"No Server running."
exit
-1
;
exit
$FAIL
;
fi
echo
"stoping application
$PROJECT_NAME
......"
...
...
base-manager/src/main/bin/start.sh
View file @
943fb47b
#!/bin/sh
PORT
=
"@profiles.server.port@"
source
/etc/profile
BASEDIR
=
`
dirname
$0
`
/..
BASEDIR
=
`
(
cd
"
$BASEDIR
"
;
pwd
)
`
PROJECT_NAME
=
"@project.artifactId@"
;
...
...
portal-manager/pom.xml
View file @
943fb47b
...
...
@@ -57,6 +57,28 @@
<skipUi>
true
</skipUi>
</properties>
</profile>
<profile>
<id>
yibin-test
</id>
<properties>
<profiles.active>
yibin-test
</profiles.active>
<profiles.server.path>
/zwfw
</profiles.server.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
<profiles.rabbitmq.host>
192.168.2.169
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.nacos.server-addr>
192.168.2.169:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<package.environment>
test
</package.environment>
<skipUi>
true
</skipUi>
</properties>
</profile>
<profile>
<id>
product
</id>
<properties>
...
...
smart-gateway/pom.xml
View file @
943fb47b
...
...
@@ -59,6 +59,28 @@
</properties>
</profile>
<profile>
<id>
yibin-test
</id>
<properties>
<profiles.active>
yibin-test
</profiles.active>
<profiles.server.ip>
192.168.2.169
</profiles.server.ip>
<profiles.server.port>
17214
</profiles.server.port>
<profiles.nginx.port>
11078
</profiles.nginx.port>
<profiles.rabbitmq.host>
192.168.2.169
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.username>
taxi_mq
</profiles.rabbitmq.username>
<profiles.rabbitmq.password>
admin@2020
</profiles.rabbitmq.password>
<profiles.rabbitmq.virtualhost>
/
</profiles.rabbitmq.virtualhost>
<profiles.nacos.server-addr>
192.168.2.169:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
smart-gov
</profiles.nacos.namespace>
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<profiles.publish.path>
/home/publish
</profiles.publish.path>
</properties>
</profile>
<profile>
<id>
product
</id>
<properties>
...
...
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