From 3f0827e64fb96a446af9c2cb1357c1ee38a60c30 Mon Sep 17 00:00:00 2001 From: chenwj113 Date: Sun, 2 Jun 2024 13:26:34 +0800 Subject: [PATCH] fix: --- .gitea/workflows/build_app.yaml | 4 ++-- .gitea/workflows/build_runtime.yaml | 4 ++-- RuntimeDockerfile | 2 +- main.py | 1 - 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build_app.yaml b/.gitea/workflows/build_app.yaml index 95674e1..4633c53 100644 --- a/.gitea/workflows/build_app.yaml +++ b/.gitea/workflows/build_app.yaml @@ -17,9 +17,9 @@ jobs: steps: - run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!" - name: Check out repository code - uses: https://git.airpig.cn/actions/checkout@v4 + uses: https://gitea.com/actions/checkout@v4 - name: Login to hub.airpig.cn - uses: https://git.airpig.cn/actions/login-action@v3 + uses: https://gitea.com/docker/login-action@v3 with: registry: hub.airpig.cn username: admin diff --git a/.gitea/workflows/build_runtime.yaml b/.gitea/workflows/build_runtime.yaml index 3e3c4d7..e41e0b4 100644 --- a/.gitea/workflows/build_runtime.yaml +++ b/.gitea/workflows/build_runtime.yaml @@ -13,9 +13,9 @@ jobs: steps: - run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!" - name: Check out repository code - uses: https://git.airpig.cn/actions/checkout@v4 + uses: https://gitea.com/actions/checkout@v4 - name: Login to hub.airpig.cn - uses: https://git.airpig.cn/actions/login-action@v3 + uses: https://gitea.com/docker/login-action@v3 with: registry: hub.airpig.cn username: admin diff --git a/RuntimeDockerfile b/RuntimeDockerfile index 8539914..b912cc4 100644 --- a/RuntimeDockerfile +++ b/RuntimeDockerfile @@ -28,4 +28,4 @@ WORKDIR /app ENV FAST_API_ENV=prod -CMD ["/usr/local/bin/uvicorn", "main:fast_api_app", "--reload", "--host", "0.0.0.0", "--port", "80"] +CMD ["/usr/local/bin/uvicorn", "main:fast_api_app", "--reload", "--host", "0.0.0.0", "--port", "80"] \ No newline at end of file diff --git a/main.py b/main.py index 099eb08..f546ad2 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,6 @@ from config import init_config from src.utils.exception import (http_exception_handler, request_validation_error_handler) - def create_app(): app = FastAPI()