🐛
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward 2024-05-08 15:51:19 +08:00
parent 252c2a27e6
commit 433b67a038
2 changed files with 3 additions and 3 deletions

View File

@ -16,11 +16,11 @@ RUN ls -lh && chmod +x ./app
FROM alpine FROM alpine
WORKDIR /app WORKDIR /app
WORKDIR db RUN mkdir -p db
COPY --from=build /build/app /app COPY --from=build /build/app /app
COPY --from=build /build/template/* /app/template/ COPY --from=build /build/template/* /app/template/
RUN ls -al /app/ | grep 'app' RUN ls -al /app/ | grep 'app'
ENTRYPOINT ["/app/app"] ENTRYPOINT ["./app"]

View File

@ -33,7 +33,7 @@ func Init() {
// initConfig // initConfig
// @description: 初始化配置 // @description: 初始化配置
func initConfig() { func initConfig() {
configBytes, err := os.ReadFile("./config/app.yaml") configBytes, err := os.ReadFile("./app.yaml")
if err != nil { if err != nil {
log.Panicf("读取配置文件失败: %v", err.Error()) log.Panicf("读取配置文件失败: %v", err.Error())
} }