Skip to content

Commit

Permalink
回滚不科学代码实现 (caoyingjunz#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
caoyingjunz authored Dec 13, 2024
1 parent 5332f11 commit 997f484
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 162 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,3 @@ jobs:
harbor.cloud.pixiuio.com/${{ secrets.HARBOR_PROJECT }}/pixiu:latest
harbor.cloud.pixiuio.com/${{ secrets.HARBOR_PROJECT }}/pixiu:v0.1
harbor.cloud.pixiuio.com/${{ secrets.HARBOR_PROJECT }}/pixiu:${{ env.COMMIT_HASH }}
- name: Build and push the pixiu aio image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile-aio
platforms: linux/amd64,linux/arm64
build-args: |
VERSION=${{ env.COMMIT_HASH }}-${{ env.TIMESTAMP }}
push: true
tags: |
harbor.cloud.pixiuio.com/${{ secrets.HARBOR_PROJECT }}/pixiu-aio:v1.1.0
19 changes: 0 additions & 19 deletions Dockerfile-aio

This file was deleted.

6 changes: 0 additions & 6 deletions api/server/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import (
"github.com/caoyingjunz/pixiu/api/server/router/tenant"
"github.com/caoyingjunz/pixiu/api/server/router/user"
"github.com/caoyingjunz/pixiu/cmd/app/options"
"github.com/caoyingjunz/pixiu/pkg/static"
)

type RegisterFunc func(o *options.Options)
Expand All @@ -55,11 +54,6 @@ func InstallRouters(o *options.Options) {

install(o, fs...)

// StaticFiles 目录不为空时,启用前端集成
if len(o.ComponentConfig.Default.StaticFiles) != 0 {
o.HttpEngine.Use(static.Serve("/", static.LocalFile(o.ComponentConfig.Default.StaticFiles, true)))
}

// 启动健康检查
o.HttpEngine.GET("/healthz", func(c *gin.Context) { c.String(http.StatusOK, "ok") })
// 启动 APIs 服务
Expand Down
2 changes: 0 additions & 2 deletions cmd/app/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ type DefaultOptions struct {
AutoMigrate bool `yaml:"auto_migrate"`

logutil.LogOptions `yaml:",inline"`

StaticFiles string `yaml:"static_files"`
}

func (o DefaultOptions) Valid() error {
Expand Down
2 changes: 0 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ default:
# 日志的格式,可选 text 和 json
log_format: json
log_level: info
# 静态文件路径
static_files: ./static

# 数据库地址信息
mysql:
Expand Down
65 changes: 0 additions & 65 deletions pkg/static/localfile.go

This file was deleted.

56 changes: 0 additions & 56 deletions pkg/static/static.go

This file was deleted.

0 comments on commit 997f484

Please sign in to comment.