|
@@ -0,0 +1,31 @@
|
|
|
|
|
+# 构建部署说明
|
|
|
|
|
+30.153构建后生成zip文件mtp2_newmanage_service_r30_xxxxxxxxxxxx.zip,包含jar包文件和config文件夹。
|
|
|
|
|
+
|
|
|
|
|
+jar包为执行文件
|
|
|
|
|
+
|
|
|
|
|
+config中包含配置文件application.yml,logback-sprint.xml及多语言资源文件message_xx.properties
|
|
|
|
|
+
|
|
|
|
|
+## application.yml配置说明
|
|
|
|
|
+
|
|
|
|
|
+server.port:本服务端口号,供newmanage_web使用
|
|
|
|
|
+
|
|
|
|
|
+custom.i18n.baseDir:外部资源的目录,配置config的绝对路径或运行jar包目录的相对路径
|
|
|
|
|
+
|
|
|
|
|
+spring下为redis、rabbitmq、datasource配置
|
|
|
|
|
+
|
|
|
|
|
+## 运行说明
|
|
|
|
|
+
|
|
|
|
|
+运行jar包时cd到jar包上级目录,保证log文件和其它服务在一个文件夹
|
|
|
|
|
+
|
|
|
|
|
+运行时加参数--spring.config.location, 指定到jar包目录的config文件夹,参考如下:
|
|
|
|
|
+
|
|
|
|
|
+ function start_newmanage_service(){
|
|
|
|
|
+ local jar_path=$product_home/mtp2_newmanage_service
|
|
|
|
|
+ local jar_file=$jar_path/mtp2_newmanage_service_r30.jar
|
|
|
|
|
+ if [ -e "$jar_file" ]; then
|
|
|
|
|
+ echo "start $jar_file"
|
|
|
|
|
+ # cd 运行目录,否则无法生成log文件
|
|
|
|
|
+ cd $product_home
|
|
|
|
|
+ java -jar $jar_file --spring.config.location=file:$jar_path/config/ &
|
|
|
|
|
+ fi
|
|
|
|
|
+ }
|