From 77f94f9aa35c136f6cccba4d419572c094c053e2 Mon Sep 17 00:00:00 2001 From: qiaoxinjiu Date: Wed, 15 Apr 2026 11:08:14 +0800 Subject: [PATCH] =?UTF-8?q?python=E5=90=AF=E5=8A=A8=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 ++ manage.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index bd06dcc..79af542 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -66,6 +66,8 @@ pipeline { withDockerRegistry(registry: [credentialsId: '3a4a4463-784d-4e91-9457-9dfd64722ecb', url: 'https://39.170.26.156:8443']) { sh ''' set -e + export DOCKER_BUILDKIT=0 + docker pull 39.170.26.156:8443/library/python:3.10-bookworm docker build --no-cache \ -t ${IMAGE_NAME}:${BUILD_NUMBER} \ -t ${IMAGE_NAME}:latest \ diff --git a/manage.py b/manage.py index a41193a..f9f4e25 100644 --- a/manage.py +++ b/manage.py @@ -5,7 +5,10 @@ from app import create_app app = create_app() CORS(app, resources=r'/*') -app.run(host="0.0.0.0", port=int("5010"), debug="debug") + + +if __name__ == '__main__': + app.run(host='0.0.0.0', port=5010, debug=True) def cors_response(res):