fix:
This commit is contained in:
parent
7dfc9ff205
commit
3f0827e64f
|
|
@ -17,9 +17,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
- name: Check out repository code
|
- 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
|
- name: Login to hub.airpig.cn
|
||||||
uses: https://git.airpig.cn/actions/login-action@v3
|
uses: https://gitea.com/docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: hub.airpig.cn
|
registry: hub.airpig.cn
|
||||||
username: admin
|
username: admin
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
- name: Check out repository code
|
- 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
|
- name: Login to hub.airpig.cn
|
||||||
uses: https://git.airpig.cn/actions/login-action@v3
|
uses: https://gitea.com/docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: hub.airpig.cn
|
registry: hub.airpig.cn
|
||||||
username: admin
|
username: admin
|
||||||
|
|
|
||||||
|
|
@ -28,4 +28,4 @@ WORKDIR /app
|
||||||
|
|
||||||
ENV FAST_API_ENV=prod
|
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"]
|
||||||
1
main.py
1
main.py
|
|
@ -12,7 +12,6 @@ from config import init_config
|
||||||
from src.utils.exception import (http_exception_handler,
|
from src.utils.exception import (http_exception_handler,
|
||||||
request_validation_error_handler)
|
request_validation_error_handler)
|
||||||
|
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue