Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
654a6309
提交
654a6309
authored
8月 11, 2021
作者:
Matrix
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[cicd] 重新添加cicd脚本
上级
f7a5b10b
流水线
#295
已取消 于阶段
变更
5
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
54 行增加
和
3 行删除
+54
-3
.gitignore
.gitignore
+5
-0
.gitlab-ci.yml
.gitlab-ci.yml
+38
-0
UnionApplication.java
...on/src/main/java/com/tykj/dev/union/UnionApplication.java
+4
-1
application-dev.properties
dev-union/src/main/resources/application-dev.properties
+6
-2
application.properties
dev-union/src/main/resources/application.properties
+1
-0
没有找到文件。
.gitignore
浏览文件 @
654a6309
...
...
@@ -4,6 +4,11 @@ target/
!**/src/main/**
!**/src/test/**
# Log file
*.log
.log
**/.log
### STS ###
\~*.xlsx
.apt_generated
...
...
.gitlab-ci.yml
0 → 100644
浏览文件 @
654a6309
stages
:
-
build
-
stop
-
start
cache
:
paths
:
-
target/*.jar
build
:
stage
:
build
tags
:
-
shell
script
:
-
mvn -v
-
mvn clean package -DskipTests=true -P dev
artifacts
:
# GitLab 提供的環境變數,意思是產生出的成果下載時的檔名將會是專案名稱
name
:
"
$CI_PROJECT_TITLE"
# 要保留哪些成果的路徑
paths
:
-
dev-union/target/equip-exec.jar
expire_in
:
1 day
stop
:
stage
:
stop
tags
:
-
shell
script
:
-
pkill -f equip
start
:
stage
:
start
tags
:
-
shell
script
:
-
nohup java -jar dev-union/target/equip-exec.jar > /dev/null &
dev-union/src/main/java/com/tykj/dev/union/UnionApplication.java
浏览文件 @
654a6309
package
com
.
tykj
.
dev
.
union
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
...
...
@@ -17,7 +18,9 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableJpaAuditing
@EnableTransactionManagement
@EnableScheduling
@EnableAutoConfiguration
(
exclude
=
{
org
.
springframework
.
boot
.
autoconfigure
.
security
.
servlet
.
SecurityAutoConfiguration
.
class
})
public
class
UnionApplication
extends
SpringBootServletInitializer
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
UnionApplication
.
class
,
args
);
...
...
dev-union/src/main/resources/application-dev.properties
浏览文件 @
654a6309
...
...
@@ -3,4 +3,8 @@ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username
=
root
spring.datasource.password
=
root
spring.jpa.hibernate.ddl-auto
=
update
#
file.path
=
C:/Users/dengdiyi/Documents/file/
\ No newline at end of file
#file.path=C:/Users/dengdiyi/Documents/file/
spring.boot.admin.client.url
=
http://localhost:8769
management.endpoints.web.exposure.include
=
*
management.endpoint.health.show-details
=
ALWAYS
\ No newline at end of file
dev-union/src/main/resources/application.properties
浏览文件 @
654a6309
# port
server.port
=
8087
spring.application.name
=
equipment
spring.profiles.active
=
@activatedProperties@
logging.file
=
/opt/eqlog/equip.log
spring.servlet.multipart.max-file-size
=
400MB
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论