Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
easy-affair-show
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
赵啸非
easy-affair-show
Commits
bc7ff198
Commit
bc7ff198
authored
Mar 07, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新打包
parent
82486ee5
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
293 additions
and
66 deletions
+293
-66
assembly/assembly.xml
assembly/assembly.xml
+38
-0
eas-manager/pom.xml
eas-manager/pom.xml
+77
-43
eas-manager/src/main/bin/check_server.sh
eas-manager/src/main/bin/check_server.sh
+28
-0
eas-manager/src/main/bin/deploy.sh
eas-manager/src/main/bin/deploy.sh
+111
-0
eas-manager/src/main/bin/shutdown.sh
eas-manager/src/main/bin/shutdown.sh
+14
-14
eas-manager/src/main/bin/start.cmd
eas-manager/src/main/bin/start.cmd
+2
-1
eas-manager/src/main/bin/start.sh
eas-manager/src/main/bin/start.sh
+8
-8
eas-manager/src/main/java/com/mortals/xhx/base/framework/security/AuthTokenServiceImpl.java
...als/xhx/base/framework/security/AuthTokenServiceImpl.java
+5
-0
eas-manager/src/main/java/com/mortals/xhx/base/system/user/model/UserEntity.java
...va/com/mortals/xhx/base/system/user/model/UserEntity.java
+5
-0
eas-manager/src/main/java/com/mortals/xhx/module/customer/model/CustomerEntity.java
...com/mortals/xhx/module/customer/model/CustomerEntity.java
+5
-0
No files found.
assembly/assembly.xml
0 → 100644
View file @
bc7ff198
<assembly
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"
>
<id>
release
</id>
<formats>
<format>
tar.gz
</format>
</formats>
<fileSets>
<fileSet>
<directory>
target/bin
</directory>
<outputDirectory>
bin
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
<fileSet>
<directory>
${project.parent.basedir}/dist/${project.parent.artifactId}/boot
</directory>
<outputDirectory>
boot
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
<fileSet>
<directory>
./db
</directory>
<includes>
<include>
*.sql
</include>
</includes>
<outputDirectory>
db
</outputDirectory>
<fileMode>
0755
</fileMode>
</fileSet>
</fileSets>
<files>
<file>
<source>
target/${project.artifactId}-${project.version}.jar
</source>
<outputDirectory>
boot
</outputDirectory>
</file>
</files>
</assembly>
\ No newline at end of file
eas-manager/pom.xml
View file @
bc7ff198
...
@@ -26,13 +26,6 @@
...
@@ -26,13 +26,6 @@
<properties>
<properties>
<profiles.active>
develop
</profiles.active>
<profiles.active>
develop
</profiles.active>
<profiles.server.port>
17001
</profiles.server.port>
<profiles.server.port>
17001
</profiles.server.port>
<profiles.queue.type>
rabbitmq
</profiles.queue.type>
<profiles.kafka.brokers>
192.168.0.251:9092
</profiles.kafka.brokers>
<profiles.rabbitmq.host>
192.168.0.98
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
easy-affair-show
</profiles.nacos.namespace>
<profiles.redis.uri>
192.168.0.252
</profiles.redis.uri>
<profiles.redis.uri>
192.168.0.252
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.username></profiles.redis.username>
...
@@ -43,7 +36,7 @@
...
@@ -43,7 +36,7 @@
<profiles.datasource.password>
nacos@2020
</profiles.datasource.password>
<profiles.datasource.password>
nacos@2020
</profiles.datasource.password>
<profiles.filepath>
/mortals/app/data/easy-affair-show
</profiles.filepath>
<profiles.filepath>
/mortals/app/data/easy-affair-show
</profiles.filepath>
<profiles.log.level>
info
</profiles.log.level>
<profiles.log.level>
info
</profiles.log.level>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<profiles.log.path>
/
home/
mortals/app/logs
</profiles.log.path>
</properties>
</properties>
</profile>
</profile>
<profile>
<profile>
...
@@ -51,13 +44,7 @@
...
@@ -51,13 +44,7 @@
<properties>
<properties>
<profiles.active>
test
</profiles.active>
<profiles.active>
test
</profiles.active>
<profiles.server.port>
17001
</profiles.server.port>
<profiles.server.port>
17001
</profiles.server.port>
<profiles.queue.type>
rabbitmq
</profiles.queue.type>
<profiles.kafka.brokers>
192.168.0.251:9092
</profiles.kafka.brokers>
<profiles.rabbitmq.host>
192.168.0.98
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.nacos.server-addr>
192.168.0.252:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
easy-affair-show-test
</profiles.nacos.namespace>
<profiles.redis.uri>
192.168.0.252
</profiles.redis.uri>
<profiles.redis.uri>
192.168.0.252
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.username></profiles.redis.username>
...
@@ -68,7 +55,7 @@
...
@@ -68,7 +55,7 @@
<profiles.datasource.password>
nacos@2020
</profiles.datasource.password>
<profiles.datasource.password>
nacos@2020
</profiles.datasource.password>
<profiles.filepath>
/mortals/app/data/easy-affair-show
</profiles.filepath>
<profiles.filepath>
/mortals/app/data/easy-affair-show
</profiles.filepath>
<profiles.log.level>
info
</profiles.log.level>
<profiles.log.level>
info
</profiles.log.level>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<profiles.log.path>
/
home/
mortals/app/logs
</profiles.log.path>
</properties>
</properties>
</profile>
</profile>
<profile>
<profile>
...
@@ -76,13 +63,6 @@
...
@@ -76,13 +63,6 @@
<properties>
<properties>
<profiles.active>
product
</profiles.active>
<profiles.active>
product
</profiles.active>
<profiles.server.port>
17001
</profiles.server.port>
<profiles.server.port>
17001
</profiles.server.port>
<profiles.queue.type>
rabbitmq
</profiles.queue.type>
<profiles.kafka.brokers>
127.0.0.1:9092
</profiles.kafka.brokers>
<profiles.rabbitmq.host>
127.0.0.1
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.nacos.server-addr>
127.0.0.1:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
stp
</profiles.nacos.namespace>
<profiles.redis.uri>
127.0.0.1
</profiles.redis.uri>
<profiles.redis.uri>
127.0.0.1
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.username></profiles.redis.username>
...
@@ -93,7 +73,7 @@
...
@@ -93,7 +73,7 @@
<profiles.datasource.password>
SCxhx@654321
</profiles.datasource.password>
<profiles.datasource.password>
SCxhx@654321
</profiles.datasource.password>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<profiles.log.level>
info
</profiles.log.level>
<profiles.log.level>
info
</profiles.log.level>
<profiles.log.path>
/mortals/app/logs
</profiles.log.path>
<profiles.log.path>
/
home/
mortals/app/logs
</profiles.log.path>
</properties>
</properties>
</profile>
</profile>
...
@@ -102,18 +82,12 @@
...
@@ -102,18 +82,12 @@
<properties>
<properties>
<profiles.active>
yibin
</profiles.active>
<profiles.active>
yibin
</profiles.active>
<profiles.server.port>
17001
</profiles.server.port>
<profiles.server.port>
17001
</profiles.server.port>
<profiles.queue.type>
rabbitmq
</profiles.queue.type>
<profiles.kafka.brokers>
127.0.0.1:9092
</profiles.kafka.brokers>
<profiles.rabbitmq.host>
127.0.0.1
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.nacos.server-addr>
127.0.0.1:8848
</profiles.nacos.server-addr>
<profiles.nacos.group>
DEFAULT_GROUP
</profiles.nacos.group>
<profiles.nacos.namespace>
stp
</profiles.nacos.namespace>
<profiles.redis.uri>
172.15.28.120
</profiles.redis.uri>
<profiles.redis.uri>
172.15.28.120
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
1
6
</profiles.redis.database>
<profiles.redis.database>
1
1
</profiles.redis.database>
<profiles.datasource.uri>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://172.15.28.121:3306/device-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<![CDATA[jdbc:mysql://172.15.28.121:3306/device-platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
...
@@ -127,6 +101,26 @@
...
@@ -127,6 +101,26 @@
</properties>
</properties>
</profile>
</profile>
<profile>
<id>
regtest
</id>
<properties>
<profiles.active>
regtest
</profiles.active>
<profiles.server.port>
17001
</profiles.server.port>
<profiles.redis.uri>
127.0.0.1
</profiles.redis.uri>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
11
</profiles.redis.database>
<profiles.datasource.uri>
<![CDATA[jdbc:mysql://172.15.28.121:3306/yi_zheng_xiu?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong]]>
</profiles.datasource.uri>
<profiles.datasource.username>
root
</profiles.datasource.username>
<profiles.datasource.password>
xhx@2022
</profiles.datasource.password>
<profiles.filepath>
/mortals/app/data
</profiles.filepath>
<profiles.log.level>
info
</profiles.log.level>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
</properties>
</profile>
</profiles>
</profiles>
<dependencies>
<dependencies>
...
@@ -203,11 +197,6 @@
...
@@ -203,11 +197,6 @@
</resources>
</resources>
<plugins>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-jar-plugin
</artifactId>
</plugin>
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<artifactId>
maven-surefire-plugin
</artifactId>
...
@@ -219,11 +208,6 @@
...
@@ -219,11 +208,6 @@
<plugin>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<jvmArguments>
-Dfile.encoding=UTF-8
</jvmArguments>
<outputDirectory>
${project.basedir}/dist/${project.artifactId}/boot
</outputDirectory>
<layout>
ZIP
</layout>
</configuration>
</plugin>
</plugin>
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
...
@@ -247,15 +231,65 @@
...
@@ -247,15 +231,65 @@
</goals>
</goals>
<configuration>
<configuration>
<encoding>
UTF-8
</encoding>
<encoding>
UTF-8
</encoding>
<outputDirectory>
${project.basedir}/dist/${project.artifactId}/bin
</outputDirectory>
<outputDirectory>
target/bin
</outputDirectory>
<resources>
<resources>
<resource>
<resource>
<directory>
src/main/bin/
</directory>
<directory>
src/main/bin/
</directory>
<excludes>
<exclude>
deploy.sh
</exclude>
</excludes>
<filtering>
true
</filtering>
<filtering>
true
</filtering>
</resource>
</resource>
</resources>
</resources>
</configuration>
</configuration>
</execution>
</execution>
<execution>
<id>
copy-deploy
</id>
<phase>
package
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<encoding>
UTF-8
</encoding>
<outputDirectory>
${project.parent.basedir}/dist/${project.artifactId}/
</outputDirectory>
<resources>
<resource>
<directory>
src/main/bin
</directory>
<includes>
<include>
deploy.sh
</include>
</includes>
<filtering>
true
</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>
maven-assembly-plugin
</artifactId>
<version>
3.3.0
</version>
<executions>
<execution>
<id>
make-assembly
</id>
<phase>
package
</phase>
<goals>
<goal>
single
</goal>
</goals>
<configuration>
<finalName>
${project.artifactId}
</finalName>
<appendAssemblyId>
false
</appendAssemblyId>
<descriptors>
<descriptor>
../assembly/assembly.xml
</descriptor>
</descriptors>
<outputDirectory>
${project.parent.basedir}/dist/${project.artifactId}
</outputDirectory>
</configuration>
</execution>
</executions>
</executions>
</plugin>
</plugin>
</plugins>
</plugins>
...
...
eas-manager/src/main/bin/check_server.sh
0 → 100644
View file @
bc7ff198
#!/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
eas-manager/src/main/bin/deploy.sh
0 → 100644
View file @
bc7ff198
#!/bin/sh
RETVAL
=
$?
SHELL_NAME
=
"deploy"
BASEDIR
=
$(
dirname
$0
)
BASEDIR
=
$(
(
cd
"
$BASEDIR
"
pwd
)
)
LOCK_FILE
=
"/tmp/deploy.lock"
# 时间变量
CDATE
=
$(
date
"+%Y-%m-%d"
)
CTIME
=
$(
date
"+%H:%M:%S"
)
SHELL_LOG
=
"
${
BASEDIR
}
/
${
SHELL_NAME
}
.log"
JAVA_HOME
=
"/usr/local/java/jdk1.8"
SERVICE_PATH
=
"/usr/lib/systemd/system"
PUBLISH_PATH
=
"@profiles.publish.path@"
PROJECT_NAME
=
"@project.artifactId@"
PROJECT_EXECPATH
=
"
${
PUBLISH_PATH
}
/
${
PROJECT_NAME
}
"
PROJECT_UI_EXECPATH
=
"
${
PUBLISH_PATH
}
/
${
PROJECT_NAME
}
-ui/dist"
PROJECT_FILENAME
=
"
${
PROJECT_NAME
}
.tar.gz"
PROJECT_UI_FILENAME
=
"
${
PROJECT_NAME
}
-ui.tar.gz"
PROJECT_SERVICE
=
"
${
SERVICE_PATH
}
/
${
PROJECT_NAME
}
.service"
#写日志
writelog
()
{
LOGINFO
=
$1
echo
"
${
CDATE
}
${
CTIME
}
:
${
SHELL_NAME
}
:
${
LOGINFO
}
"
>>
${
SHELL_LOG
}
echo
${
LOGINFO
}
}
#清理目标
clear_deploy
()
{
SERVICE
=
$1
EXECPATH
=
$2
#清理后台自启服务
rm
-rf
${
SERVICE
}
#清理执行文件目录
rm
-rf
${
EXECPATH
}
}
#清理ui
clear_ui_deploy
()
{
EXEC_UI_PATH
=
$1
rm
-rf
${
EXEC_UI_PATH
}
mkdir
-p
${
EXEC_UI_PATH
}
}
build_service
()
{
SERVICE
=
$1
EXECPATH
=
$2
echo
""
>
${
SERVICE
}
echo
"[Unit]"
>>
${
SERVICE
}
echo
"Description=
${
PROJECT_NAME
}
"
>>
${
SERVICE
}
echo
"After=network.target"
>>
${
SERVICE
}
echo
""
>>
${
SERVICE
}
echo
"[Service]"
>>
${
SERVICE
}
echo
"Environment=
\"
JAVA_HOME=
$JAVA_HOME
\"
"
>>
${
SERVICE
}
echo
"Type=forking"
>>
${
SERVICE
}
echo
"ExecStart=
${
EXECPATH
}
/bin/start.sh"
>>
${
SERVICE
}
echo
"ExecStop=
${
EXECPATH
}
/bin/shutdown.sh"
>>
${
SERVICE
}
echo
"PrivateTmp=true"
>>
${
SERVICE
}
echo
""
>>
${
SERVICE
}
echo
"[Install]"
>>
${
SERVICE
}
echo
"WantedBy=multi-user.target"
>>
${
SERVICE
}
writelog
"
${
PROJECT_NAME
}
服务创建完成!"
}
#启动服务与nginx
start_service
()
{
systemctl
enable
${
PROJECT_NAME
}
systemctl daemon-reload
writelog
"
${
PROJECT_NAME
}
服务启动..."
systemctl stop
${
PROJECT_NAME
}
&&
systemctl start
${
PROJECT_NAME
}
project_status
=
$(
systemctl status
"
${
PROJECT_NAME
}
"
|grep Active |awk
'{print $2}'
)
jcpid
=
$(
ps
-ef
|
grep
-v
"grep"
|
grep
"
${
PROJECT_NAME
}
"
|
awk
'{print $2}'
)
writelog
"
${
PROJECT_NAME
}
服务启动,PID is
${
jcpid
}
,status:
${
project_status
}
"
}
#部署后台服务
project_deploy
()
{
writelog
"
${
PROJECT_NAME
}
_deploy"
systemctl stop
${
PROJECT_NAME
}
clear_deploy
${
PROJECT_SERVICE
}
${
PROJECT_EXECPATH
}
writelog
"
${
PROJECT_NAME
}
_clear_finish"
tar
-zvxf
./
${
PROJECT_FILENAME
}
-C
${
PUBLISH_PATH
}
build_service
${
PROJECT_SERVICE
}
${
PROJECT_EXECPATH
}
start_service
writelog
"
${
PROJECT_NAME
}
_deploy_finish"
}
#部署前台服务
project_ui_deploy
()
{
writelog
"
${
PROJECT_NAME
}
_ui_deploy"
clear_ui_deploy
${
PROJECT_UI_EXECPATH
}
tar
-zvxf
./
${
PROJECT_UI_FILENAME
}
-C
${
PUBLISH_PATH
}
writelog
"
${
PROJECT_NAME
}
_ui_deploy_finish"
}
#主函数
main
()
{
echo
"后台服务部署"
project_deploy
echo
"前端服务部署"
project_ui_deploy
exit
${
RETVAL
}
}
main
$1
eas-manager/src/main/bin/shutdown.sh
View file @
bc7ff198
#! /bin/sh
#! /bin/sh
PORT
=
"@profiles.server.port@"
PORT
=
"@profiles.server.port@"
BASEDIR
=
`
dirname
$0
`
BASEDIR
=
$(
dirname
$0
)
BASEDIR
=
`
(
cd
"
$BASEDIR
"
;
pwd
)
`
BASEDIR
=
$(
(
cd
"
$BASEDIR
"
pwd
)
)
PROJECT_NAME
=
"@project.artifactId@"
PROJECT_NAME
=
"@project.artifactId@"
MAIN_CLASS
=
"
$PROJECT_NAME
"
;
MAIN_CLASS
=
"
$PROJECT_NAME
"
if
[
!
-n
"
$PORT
"
]
;
then
if
[
!
-n
"
$PORT
"
]
;
then
echo
$"Usage:
$0
{port}"
echo
$"Usage:
$0
{port}"
exit
$FAIL
exit
$FAIL
fi
fi
pid
=
$(
ps ax |
grep
-i
"
$MAIN_CLASS
"
|
grep
java |
grep
-v
grep
|
awk
'{print $1}'
)
pid
=
`
ps ax |
grep
-i
"
$MAIN_CLASS
"
|
grep
java |
grep
-v
grep
|
awk
'{print $1}'
`
if
[
-z
"
$pid
"
]
;
then
if
[
-z
"
$pid
"
]
;
then
echo
"No Server running."
echo
"No Server running."
exit
1
exit
-1
;
fi
fi
echo
"stoping application
$PROJECT_NAME
......"
echo
"stoping application
$PROJECT_NAME
......"
kill
-
9
${
pid
}
kill
-
15
${
pid
}
echo
"Send shutdown request to Server
$PROJECT_NAME
OK"
echo
"Send shutdown request to Server
$PROJECT_NAME
OK"
eas-manager/src/main/bin/start.cmd
View file @
bc7ff198
...
@@ -28,7 +28,8 @@ set JVM_CONFIG=%JVM_CONFIG% -Dapp.name=%PROJECT_NAME%
...
@@ -28,7 +28,8 @@ set JVM_CONFIG=%JVM_CONFIG% -Dapp.name=%PROJECT_NAME%
set
JVM_CONFIG
=
%JVM_CONFIG%
-Dapp
.port
=
%PORT%
set
JVM_CONFIG
=
%JVM_CONFIG%
-Dapp
.port
=
%PORT%
set
JVM_CONFIG
=
%JVM_CONFIG%
-Djava
.io.tmpdir
=
%TEMP_PATH%
set
JVM_CONFIG
=
%JVM_CONFIG%
-Djava
.io.tmpdir
=
%TEMP_PATH%
set
JVM_CONFIG
=
%JVM_CONFIG%
-Dbasedir
=
%BASEDIR%
set
JVM_CONFIG
=
%JVM_CONFIG%
-Dbasedir
=
%BASEDIR%
set
JVM_CONFIG
=
%JVM_CONFIG%
-Dloader
.path
=
file
://
%BASEDIR%
/conf
,
file
://
%BASEDIR%
/lib
set
JVM_CONFIG
=
%JVM_CONFIG%
-Dfile
.encoding
=
utf
-
8
set
DEBUG_OPTS
=
set
DEBUG_OPTS
=
if
""
%
1
""
==
""
debug
""
(
if
""
%
1
""
==
""
debug
""
(
...
...
eas-manager/src/main/bin/start.sh
View file @
bc7ff198
...
@@ -5,9 +5,9 @@ BASEDIR=`(cd "$BASEDIR"; pwd)`
...
@@ -5,9 +5,9 @@ BASEDIR=`(cd "$BASEDIR"; pwd)`
PROJECT_NAME
=
"@project.artifactId@"
;
PROJECT_NAME
=
"@project.artifactId@"
;
MAIN_CLASS
=
"
$PROJECT_NAME
-@project.version@.jar"
;
MAIN_CLASS
=
"
$PROJECT_NAME
-@project.version@.jar"
;
LOG_PATH
=
"@profiles.log.path@/
$PROJECT_NAME
"
LOG_PATH
=
"@profiles.log.path@/
$PROJECT_NAME
"
GC_PATH
=
$LOG_PATH
/
$PORT
"-gc.log"
GC_PATH
=
$LOG_PATH
/
PROJECT_NAME
"-gc.log"
HS_ERR_PATH
=
$LOG_PATH
/
$P
ORT
"-hs_err.log"
HS_ERR_PATH
=
$LOG_PATH
/
$P
ROJECT_NAME
"-hs_err.log"
HEAP_DUMP_PATH
=
$LOG_PATH
/
$P
ORT
"-heap_dump.hprof"
HEAP_DUMP_PATH
=
$LOG_PATH
/
$P
ROJECT_NAME
"-heap_dump.hprof"
TEMP_PATH
=
$LOG_PATH
/temp/
TEMP_PATH
=
$LOG_PATH
/temp/
SUCCESS
=
0
SUCCESS
=
0
FAIL
=
9
FAIL
=
9
...
@@ -32,9 +32,8 @@ if [ -z "$JAVACMD" ] ; then
...
@@ -32,9 +32,8 @@ if [ -z "$JAVACMD" ] ; then
JAVACMD
=
"
$JAVA_HOME
/bin/java"
JAVACMD
=
"
$JAVA_HOME
/bin/java"
fi
fi
else
else
JAVACMD
=
`
which java
>
/dev/null 2>&1
`
JAVACMD
=
`
which java
`
echo
"Error: JAVA_HOME is not defined correctly."
echo
"Error: JAVA_HOME is
$JAVACMD
"
exit
$ERR_NO_JAVA
fi
fi
fi
fi
...
@@ -45,7 +44,7 @@ fi
...
@@ -45,7 +44,7 @@ fi
if
[
-e
"
$BASEDIR
"
]
if
[
-e
"
$BASEDIR
"
]
then
then
JAVA_OPTS
=
"-Xms512M -Xmx
1024
M -Xss256K -XX:+UseAdaptiveSizePolicy -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=39 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:
$GC_PATH
-XX:+HeapDumpOnOutOfMemoryError -XX:ErrorFile=
$HS_ERR_PATH
-XX:HeapDumpPath=
$HEAP_DUMP_PATH
"
JAVA_OPTS
=
"-Xms512M -Xmx
2048
M -Xss256K -XX:+UseAdaptiveSizePolicy -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=39 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:
$GC_PATH
-XX:+HeapDumpOnOutOfMemoryError -XX:ErrorFile=
$HS_ERR_PATH
-XX:HeapDumpPath=
$HEAP_DUMP_PATH
"
fi
fi
CLASSPATH
=
$CLASSPATH_PREFIX
:
CLASSPATH
=
$CLASSPATH_PREFIX
:
...
@@ -60,7 +59,8 @@ exec "$JAVACMD" $JAVA_OPTS \
...
@@ -60,7 +59,8 @@ exec "$JAVACMD" $JAVA_OPTS \
-Dapp
.port
=
"
$PORT
"
\
-Dapp
.port
=
"
$PORT
"
\
-Dbasedir
=
"
$BASEDIR
"
\
-Dbasedir
=
"
$BASEDIR
"
\
-Djava
.io.tmpdir
=
$TEMP_PATH
\
-Djava
.io.tmpdir
=
$TEMP_PATH
\
-agentlib
:jdwp
=
transport
=
dt_socket,server
=
y,suspend
=
n,address
=
15503
\
-Dloader
.path
=
"file://
$BASEDIR
/conf,file://
$BASEDIR
/lib"
\
-agentlib
:jdwp
=
transport
=
dt_socket,server
=
y,suspend
=
n,address
=
5516
\
-jar
$MAIN_CLASS
\
-jar
$MAIN_CLASS
\
>
/dev/null &
>
/dev/null &
...
...
eas-manager/src/main/java/com/mortals/xhx/base/framework/security/AuthTokenServiceImpl.java
View file @
bc7ff198
...
@@ -124,6 +124,11 @@ public class AuthTokenServiceImpl implements IAuthTokenService {
...
@@ -124,6 +124,11 @@ public class AuthTokenServiceImpl implements IAuthTokenService {
return
siteIds
;
return
siteIds
;
}
}
@Override
public
String
getAreaCodes
()
{
return
null
;
}
@Override
@Override
public
Long
getCustomerJoinId
()
{
public
Long
getCustomerJoinId
()
{
return
null
;
return
null
;
...
...
eas-manager/src/main/java/com/mortals/xhx/base/system/user/model/UserEntity.java
View file @
bc7ff198
...
@@ -333,6 +333,11 @@ public class UserEntity extends UserEntityExt implements IUser {
...
@@ -333,6 +333,11 @@ public class UserEntity extends UserEntityExt implements IUser {
return
null
;
return
null
;
}
}
@Override
public
String
getAreaCodes
()
{
return
null
;
}
/**
/**
* 设置 站点id
* 设置 站点id
* @param siteId
* @param siteId
...
...
eas-manager/src/main/java/com/mortals/xhx/module/customer/model/CustomerEntity.java
View file @
bc7ff198
...
@@ -434,6 +434,11 @@ public class CustomerEntity extends CustomerVo implements IUser {
...
@@ -434,6 +434,11 @@ public class CustomerEntity extends CustomerVo implements IUser {
return
null
;
return
null
;
}
}
@Override
public
String
getAreaCodes
()
{
return
null
;
}
@Override
@Override
public
Long
getCustomerJoinId
()
{
public
Long
getCustomerJoinId
()
{
return
null
;
return
null
;
...
...
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