This commit is contained in:
sszvip
2024-07-28 11:27:59 +08:00
parent dcddc8b17d
commit d40fbf4675
18 changed files with 0 additions and 2461 deletions

View File

@@ -1,38 +0,0 @@
go:
application:
debug: true
cache-tpl: false # 默认不缓存模板,省内存,方便开发
log:
output: stdout # stdout只写控制台file:只写文件,默认:双写
cache: ram
redis:
# host: ${REDIS_HOST:192.168.81.228}
host: ${REDIS_HOST:lostvip.com}
port: ${REDIS_PORT:6379}
password: ${REDIS_PWD:Ssz123456!}
# password: ${REDIS_PWD:dpctest}
# password:
datasource:
# driver: sqlite3
# master: data.db
driver: mysql
master: ${MYSQL_MASTER:"vip:Ssz123456!@tcp(lostvip.com:3307)/test?charset=utf8"}
# master: ${MYSQL_MASTER:"root:qwer1234@tcp(192.168.88.114:3307)/dpc?charset=utf8"}
slave: ""
#代理转发
# proxy:
# enable: true
# prefix:
# - /video=192.168.100.110
# - /lostvip=lostvip.com
#代码生成器配置
gen:
author: lv
#大模块如lv_framework、main、demo
moduleName: main
#小模块,业务包
packageName: myowrk
#覆盖旧的代码
overwrite: false
#新生成的菜单挂到哪个菜单下
parent_menu_id: 4

View File

@@ -1,16 +0,0 @@
server:
port: ${PORT:8080}
# context-path: /go
copyright: © 2023 lostvip.com Copyright
## 注释以下配置时,不会使用 nacos #################
## 开户后会到nacos中加载 app-mywork-dev.yml
#go:
# application:
# name: app-mywork # 微服务名
# active: dev
# debug: true
# cloud:
# nacos:
# discovery: # 服务注册地址
# server-addr: 192.168.88.106
# port: 8848

View File

@@ -1,21 +0,0 @@
#!/bin/bash
export MYSQL_MASTER="root:Ssz123456!@tcp(lostvip.com:3307)/test?charset=utf8"
export REDIS_HOST=lostvip.com
export REDIS_PORT=6379
export REDIS_PWD=Ssz123456!
app_name=main
PID=$(ps -ef | grep $app_name | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
echo $app_name is already stopped !!
else
echo kill $PID
kill -9 $PID
sleep 5s
echo $app_name 停止服务完成!
fi
nohup ./main &
ps -ef|grep main
tail -f nohup.out

View File

@@ -1,19 +0,0 @@
version: '3.3'
services:
sys:
image: reg.lostvip.com/sys:${VER_APP}
ports:
- "3001:3001"
environment:
- REDIS_HOST=172.17.16.120
- REDIS_PORT=6379
- REDIS_PWD=Ssz123456!
- MYSQL_MASTER=root:Ssz123456!@tcp(172.17.16.120:3307)/test?charset=utf8
volumes:
- /mnt/nfs/ry/static/upload:/root/static/upload
# - /opt/web-svc/ruoyi-go/application.yml:/root/application.yml
deploy:
replicas: 2
restart_policy:
condition: on-failure

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

View File

@@ -1,32 +0,0 @@
go:
application:
debug: true
log:
output: stdout # stdout只写控制台file:只写文件,默认:双写
cache: ram # ram , redis
redis:
host: ${REDIS_HOST:192.168.81.228}
password: ${REDIS_PWD:qwer1234}
datasource:
driver: sqlite3
master: data.db
# driver: mysql
# master: ${MYSQL_MASTER:"root:qwer1234@tcp(192.168.81.228:3306)/test?charset=utf8"}
slave: ""
#代理转发
# proxy:
# enable: true
# prefix:
# - /video=192.168.100.110
# - /lostvip=lostvip.com
#代码生成器配置
gen:
author: lostvip
#大模块如lv_framework、main、demo
moduleName: main
#小模块,业务包
packageName: myowrk
#覆盖旧的代码
overwrite: false
#新生成的菜单挂到哪个菜单下
parent_menu_id: 4

View File

@@ -1,36 +0,0 @@
go:
application:
debug: true
log:
output: stdout,file # stdout只写控制台file:只写文件,默认:双写
redis:
# host: ${REDIS_HOST:192.168.81.228}
host: ${REDIS_HOST:lostvip.com}
port: ${REDIS_PORT:6379}
password: ${REDIS_PWD:Ssz123456!}
# password: ${REDIS_PWD:dpctest}
# password:
datasource:
# driver: sqlite3
# master: data.db
driver: mysql
master: ${MYSQL_MASTER:"root:Ssz123456!@tcp(lostvip.com:3307)/test?charset=utf8"}
# master: ${MYSQL_MASTER:"root:qwer1234@tcp(192.168.88.114:3307)/dpc?charset=utf8"}
slave: ""
#代理转发
# proxy:
# enable: true
# prefix:
# - /video=192.168.100.110
# - /lostvip=lostvip.com
#代码生成器配置
gen:
author: lv
#大模块如lv_framework、main、demo
moduleName: main
#小模块,业务包
packageName: myowrk
#覆盖旧的代码
overwrite: false
#新生成的菜单挂到哪个菜单下
parent_menu_id: 4

View File

@@ -1,16 +0,0 @@
server:
port: ${PORT:8080}
# context-path: /go
copyright: © 2023 lostvip.com Copyright
## 注释以下配置时,不会使用 nacos #################
## 开户后会到nacos中加载 app-mywork-dev.yml
#go:
# application:
# name: app-mywork # 微服务名
# active: dev
# debug: true
# cloud:
# nacos:
# discovery: # 服务注册地址
# server-addr: 192.168.88.106
# port: 8848

View File

@@ -1,21 +0,0 @@
#!/bin/bash
export MYSQL_MASTER="root:Ssz123456!@tcp(lostvip.com:3307)/test?charset=utf8"
export REDIS_HOST=lostvip.com
export REDIS_PORT=6379
export REDIS_PWD=Ssz123456!
app_name=main
PID=$(ps -ef | grep $app_name | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
echo $app_name is already stopped !!
else
echo kill $PID
kill -9 $PID
sleep 5s
echo $app_name 停止服务完成!
fi
nohup ./main &
ps -ef|grep main
tail -f nohup.out

View File

@@ -1,19 +0,0 @@
version: '3.3'
services:
sys:
image: reg.lostvip.com/sys:${VER_APP}
ports:
- "3001:3001"
environment:
- REDIS_HOST=172.17.16.120
- REDIS_PORT=6379
- REDIS_PWD=Ssz123456!
- MYSQL_MASTER=root:Ssz123456!@tcp(172.17.16.120:3307)/test?charset=utf8
volumes:
- /mnt/nfs/ry/static/upload:/root/static/upload
# - /opt/web-svc/ruoyi-go/application.yml:/root/application.yml
deploy:
replicas: 2
restart_policy:
condition: on-failure

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

View File

@@ -1,4 +0,0 @@
#!/bin/sh
export GOPROXY=https://goproxy.cn,direct \
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 \
go build -ldflags "-w -s" -o main main.go

View File

@@ -1,19 +0,0 @@
version: '3.3'
services:
sys:
image: reg.lostvip.com/sys:${VER_APP}
ports:
- "3001:3001"
environment:
- REDIS_HOST=172.17.16.120
- REDIS_PORT=6379
- REDIS_PWD=qwer1234
- MYSQL_MASTER=root:qwer1234@tcp(172.17.16.120:3307)/ruoyi-go?charset=utf8
volumes:
- /mnt/nfs/ry/static/upload:/root/static/upload
- /opt/web-svc/ruoyi-go/application.yml:/root/application.yml
deploy:
replicas: 2
restart_policy:
condition: on-failure

Binary file not shown.

File diff suppressed because it is too large Load Diff