From 23fa3dd8ec242015ecb037f345acff02e70866e2 Mon Sep 17 00:00:00 2001 From: mozhou52 Date: Thu, 31 Oct 2024 17:23:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:build.yaml=E4=B8=8D=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-framework/go/beego/publish.yaml | 2 +- web-framework/go/beego/src/build.yaml | 6 ++++++ web-framework/go/gin/publish.yaml | 2 +- web-framework/go/gin/src/build.yaml | 6 ++++++ .../java/springboot-database/publish.yaml | 2 +- .../java/springboot-database/src/build.yaml | 13 +++++++++++++ web-framework/nodejs/egg/publish.yaml | 2 +- web-framework/nodejs/egg/src/build.yaml | 8 +++++++- web-framework/nodejs/excalidraw/publish.yaml | 2 +- web-framework/nodejs/excalidraw/src/build.yaml | 9 +++++++++ web-framework/nodejs/express/publish.yaml | 2 +- web-framework/nodejs/express/src/build.yaml | 6 ++++++ web-framework/nodejs/fastify/publish.yaml | 2 +- web-framework/nodejs/fastify/src/build.yaml | 8 +++++++- web-framework/nodejs/hapi/publish.yaml | 2 +- web-framework/nodejs/hapi/src/build.yaml | 8 +++++++- web-framework/nodejs/koa/publish.yaml | 2 +- web-framework/nodejs/koa/src/build.yaml | 8 +++++++- web-framework/nodejs/nest/publish.yaml | 2 +- web-framework/nodejs/nest/src/build.yaml | 12 ++++++++++-- web-framework/nodejs/next/publish.yaml | 2 +- web-framework/nodejs/next/src/build.yaml | 16 ++++++++++++++-- web-framework/nodejs/nuxt/publish.yaml | 2 +- web-framework/nodejs/nuxt/src/build.yaml | 12 ++++++++++-- web-framework/nodejs/thinkjs/publish.yaml | 2 +- web-framework/nodejs/thinkjs/src/build.yaml | 8 +++++++- web-framework/python/django/publish.yaml | 2 +- web-framework/python/django/src/build.yaml | 8 ++++++++ web-framework/python/fastapi/publish.yaml | 2 +- web-framework/python/fastapi/src/build.yaml | 8 ++++++++ web-framework/python/flask/publish.yaml | 2 +- web-framework/python/flask/src/build.yaml | 8 ++++++++ web-framework/python/tornado/publish.yaml | 2 +- web-framework/python/tornado/src/build.yaml | 8 +++++++- web-framework/python/webpy/publish.yaml | 2 +- web-framework/python/webpy/src/build.yaml | 8 +++++++- 36 files changed, 165 insertions(+), 31 deletions(-) create mode 100644 web-framework/java/springboot-database/src/build.yaml diff --git a/web-framework/go/beego/publish.yaml b/web-framework/go/beego/publish.yaml index 92a9d5cc7..2f81ed21d 100644 --- a/web-framework/go/beego/publish.yaml +++ b/web-framework/go/beego/publish.yaml @@ -1,7 +1,7 @@ Edition: 3.0.0 Type: Project Name: start-beego-cap -Version: 0.0.4 +Version: 0.0.5 Provider: - 阿里云 Description: 本案例展示了如何将 Beego —— 一款高效的Go语言Web框架,无缝部署至云原生应用开发平台,实现快速构建云原生应用的实践。Beego以其对Go特性的深度整合、简洁的MVC设计模式以及高性能著称,广泛应用于各类Web开发场景中。 diff --git a/web-framework/go/beego/src/build.yaml b/web-framework/go/beego/src/build.yaml index cd54e93df..e2c4b4f02 100644 --- a/web-framework/go/beego/src/build.yaml +++ b/web-framework/go/beego/src/build.yaml @@ -1,4 +1,10 @@ start_beego: + default: + languages: + - go1.8 + steps: + - run: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go + path: ./code defaultBuilder: languages: - go1.8 diff --git a/web-framework/go/gin/publish.yaml b/web-framework/go/gin/publish.yaml index 1103a554e..5df8595e2 100644 --- a/web-framework/go/gin/publish.yaml +++ b/web-framework/go/gin/publish.yaml @@ -3,7 +3,7 @@ Type: Project Name: start-gin-cap Provider: - 阿里云 -Version: 0.0.3 +Version: 0.0.4 Description: 本案例展示了如何将 Gin,Go 语言社区中倍受追捧的轻量级 Web 框架,迅速构建并部署至云原生应用开发平台(CAP)。Gin 凭借其高效的处理能力、极简设计及高度灵活性,赢得了众多 Go 开发者的芳心,成为快速开发高质量 Web 应用和服务的首选武器。 HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/go/gin Organization: 阿里云函数计算(FC) diff --git a/web-framework/go/gin/src/build.yaml b/web-framework/go/gin/src/build.yaml index f53de32bc..aa3b6d1e9 100644 --- a/web-framework/go/gin/src/build.yaml +++ b/web-framework/go/gin/src/build.yaml @@ -1,4 +1,10 @@ start_gin: + default: + languages: + - go1.8 + steps: + - run: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o target/main + path: ./code defaultBuilder: languages: - go1.8 diff --git a/web-framework/java/springboot-database/publish.yaml b/web-framework/java/springboot-database/publish.yaml index 12be48ee9..272f0cbf9 100755 --- a/web-framework/java/springboot-database/publish.yaml +++ b/web-framework/java/springboot-database/publish.yaml @@ -3,7 +3,7 @@ Type: Project Name: start-springboot-database Provider: - 阿里云 -Version: 0.0.3 +Version: 0.0.4 Description: 本案例是Springboot-Database模板,帮助用户拉起Springboot Web的函数服务和MySQL数据库服务,快速搭建一个基于RDS和Springboot的Java Web脚手架应用,并基于此进行二次开发。 HomePage: https://github.com/devsapp/start-web-framework Organization: 阿里云函数计算(FC) diff --git a/web-framework/java/springboot-database/src/build.yaml b/web-framework/java/springboot-database/src/build.yaml new file mode 100644 index 000000000..8d7619569 --- /dev/null +++ b/web-framework/java/springboot-database/src/build.yaml @@ -0,0 +1,13 @@ +start_springboot: + default: + languages: + - java8 + steps: + - run: mvn package -DskipTests + path: ./code + defaultBuilder: + languages: + - java8 + steps: + - run: mvn package -DskipTests + path: ./code \ No newline at end of file diff --git a/web-framework/nodejs/egg/publish.yaml b/web-framework/nodejs/egg/publish.yaml index f68146065..9a020e24f 100755 --- a/web-framework/nodejs/egg/publish.yaml +++ b/web-framework/nodejs/egg/publish.yaml @@ -3,7 +3,7 @@ Type: Project Name: start-egg-cap Provider: - 阿里云 -Version: 0.0.3 +Version: 0.0.4 Description: 本案例展示了如何将 Egg.js,一款被开发者广泛使用的企业级 Node.js 框架,快速创建并部署到云原生应用开发平台 CAP。Egg.js其约定优于配置的设计哲学、高度扩展性和完善的文档。 HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/egg Organization: 阿里云函数计算(FC) diff --git a/web-framework/nodejs/egg/src/build.yaml b/web-framework/nodejs/egg/src/build.yaml index 4f40b8258..97f4d75e8 100644 --- a/web-framework/nodejs/egg/src/build.yaml +++ b/web-framework/nodejs/egg/src/build.yaml @@ -1,7 +1,13 @@ start_egg: + default: + languages: + - nodejs20 + steps: + - run: npm install --production + path: ./code defaultBuilder: languages: - nodejs20 steps: - - run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production + - run: npm install --production path: ./code \ No newline at end of file diff --git a/web-framework/nodejs/excalidraw/publish.yaml b/web-framework/nodejs/excalidraw/publish.yaml index 038c521f7..051ce7886 100755 --- a/web-framework/nodejs/excalidraw/publish.yaml +++ b/web-framework/nodejs/excalidraw/publish.yaml @@ -3,7 +3,7 @@ Type: Project Name: website-excalidraw-cap Provider: - 阿里云 -Version: 0.0.3 +Version: 0.0.4 Description: 本案例展示了如何将 Excalidraw,一款功能强大、易于使用的绘图工具,快速创建并部署到云原生应用开发平台 CAP。Excalidraw 其简单直观的在线界面、手绘风格的图表和草图创作功能,广泛应用于在线会议、教育、软件设计等多种场景。 Organization: 阿里云函数计算(FC) HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/excalidraw diff --git a/web-framework/nodejs/excalidraw/src/build.yaml b/web-framework/nodejs/excalidraw/src/build.yaml index 2d4a2db3b..08abb1192 100644 --- a/web-framework/nodejs/excalidraw/src/build.yaml +++ b/web-framework/nodejs/excalidraw/src/build.yaml @@ -1,4 +1,13 @@ website_excalidraw: + default: + languages: + - nodejs20 + steps: + # todo 之后改成不使用这个插件的形式 + - plugin: website-plugin-v3 + args: + port: 80 + dist: /code/examples/excalidraw/with-script-in-browser/dist defaultBuilder: languages: - nodejs20 diff --git a/web-framework/nodejs/express/publish.yaml b/web-framework/nodejs/express/publish.yaml index f940b23b0..cdad1595a 100755 --- a/web-framework/nodejs/express/publish.yaml +++ b/web-framework/nodejs/express/publish.yaml @@ -1,7 +1,7 @@ Edition: 3.0.0 Type: Project Name: start-express-cap -Version: 0.0.3 +Version: 0.0.4 Provider: - 阿里云 Description: 本案例展示了如何将 Express,一款基于 Node.js 平台的极简且灵活的 Web 应用开发框架,快速创建并部署到云原生应用开发平台 CAP。Express 框架其强大的特性、路由管理、中间件支持和模板引擎,广泛应用于 Web 和移动应用开发。 diff --git a/web-framework/nodejs/express/src/build.yaml b/web-framework/nodejs/express/src/build.yaml index 909af27bd..8cdc488fc 100644 --- a/web-framework/nodejs/express/src/build.yaml +++ b/web-framework/nodejs/express/src/build.yaml @@ -1,4 +1,10 @@ start_express: + default: + languages: + - nodejs20 + steps: + - run: npm install --production + path: ./code defaultBuilder: languages: - nodejs20 diff --git a/web-framework/nodejs/fastify/publish.yaml b/web-framework/nodejs/fastify/publish.yaml index 564e47a5d..e362fb8aa 100755 --- a/web-framework/nodejs/fastify/publish.yaml +++ b/web-framework/nodejs/fastify/publish.yaml @@ -1,7 +1,7 @@ Edition: 3.0.0 Type: Project Name: start-fastify-cap -Version: 0.0.3 +Version: 0.0.4 Provider: - 阿里云 Description: 本案例展示了如何将 Fastify,一款基于 Node.js 平台的极简且灵活的 Web 应用开发框架,快速创建并部署到云原生应用开发平台 CAP。Fastify其高效的性能、最少的开销和强大的插件结构,是速度最快的 Web 框架之一。 diff --git a/web-framework/nodejs/fastify/src/build.yaml b/web-framework/nodejs/fastify/src/build.yaml index b04440dab..e67e434a2 100644 --- a/web-framework/nodejs/fastify/src/build.yaml +++ b/web-framework/nodejs/fastify/src/build.yaml @@ -1,7 +1,13 @@ start_fastify: + default: + languages: + - nodejs20 + steps: + - run: npm install --production + path: ./code defaultBuilder: languages: - nodejs20 steps: - - run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production + - run: npm install --production path: ./code \ No newline at end of file diff --git a/web-framework/nodejs/hapi/publish.yaml b/web-framework/nodejs/hapi/publish.yaml index aaceec311..679f89442 100755 --- a/web-framework/nodejs/hapi/publish.yaml +++ b/web-framework/nodejs/hapi/publish.yaml @@ -3,7 +3,7 @@ Type: Project Name: start-hapi-cap Provider: - 阿里云 -Version: 0.0.3 +Version: 0.0.4 Description: 本案例展示了如何将 hapi.js,一款功能齐全的 Node.js 框架,快速创建并部署到云原生应用开发平台 CAP。hapi.js其内置的输入验证、缓存、身份验证、错误处理和强大的插件系统,广泛应用于构建可扩展和健壮的服务器端应用程序和服务。 HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/hapi Organization: 阿里云函数计算(FC) diff --git a/web-framework/nodejs/hapi/src/build.yaml b/web-framework/nodejs/hapi/src/build.yaml index dade20f77..bc5bda403 100644 --- a/web-framework/nodejs/hapi/src/build.yaml +++ b/web-framework/nodejs/hapi/src/build.yaml @@ -1,7 +1,13 @@ start_hapi: + default: + languages: + - nodejs20 + steps: + - run: npm install --production + path: ./code defaultBuilder: languages: - nodejs20 steps: - - run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production + - run: npm install --production path: ./code \ No newline at end of file diff --git a/web-framework/nodejs/koa/publish.yaml b/web-framework/nodejs/koa/publish.yaml index 774120fae..885b9c7a7 100755 --- a/web-framework/nodejs/koa/publish.yaml +++ b/web-framework/nodejs/koa/publish.yaml @@ -3,7 +3,7 @@ Type: Project Name: start-koa-cap Provider: - 阿里云 -Version: 0.0.3 +Version: 0.0.4 Description: 本案例展示了如何将 Koa.js,一款现代化的 Node.js Web 框架,快速创建并部署到云原生应用开发平台 CAP。Koa.js 通过利用 async 函数,提供了一种更有效的方式来处理和响应 HTTP 请求,其精简的中间件层和流式执行模式使得代码编写更加高效和可维护。 HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/koa Organization: 阿里云函数计算(FC) diff --git a/web-framework/nodejs/koa/src/build.yaml b/web-framework/nodejs/koa/src/build.yaml index 2a7941322..d7ffbdfcc 100644 --- a/web-framework/nodejs/koa/src/build.yaml +++ b/web-framework/nodejs/koa/src/build.yaml @@ -1,7 +1,13 @@ start_koa: + default: + languages: + - nodejs20 + steps: + - run: npm install --production + path: ./code defaultBuilder: languages: - nodejs20 steps: - - run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production + - run: npm install --production path: ./code \ No newline at end of file diff --git a/web-framework/nodejs/nest/publish.yaml b/web-framework/nodejs/nest/publish.yaml index 23e0e41bc..b4610fa39 100755 --- a/web-framework/nodejs/nest/publish.yaml +++ b/web-framework/nodejs/nest/publish.yaml @@ -1,7 +1,7 @@ Edition: 3.0.0 Type: Project Name: start-nest-cap -Version: 0.0.3 +Version: 0.0.4 Provider: - 阿里云 Description: 本案例展示了如何将 Nest.js,一款灵活的 Node.js 框架,快速创建并部署到云原生应用开发平台 CAP。Nest.js 使用 TypeScript 作为主要语言,提供了严格的类型检查,采用模块化和面向切面编程的概念,使得代码组织结构清晰且易于测试。 diff --git a/web-framework/nodejs/nest/src/build.yaml b/web-framework/nodejs/nest/src/build.yaml index 78c389772..3520743b6 100644 --- a/web-framework/nodejs/nest/src/build.yaml +++ b/web-framework/nodejs/nest/src/build.yaml @@ -1,9 +1,17 @@ start_nest: + default: + languages: + - nodejs20 + steps: + - run: npm install + path: ./code + - run: npm run build + path: ./code defaultBuilder: languages: - nodejs20 steps: - - run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install + - run: npm install path: ./code - - run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm run build + - run: npm run build path: ./code \ No newline at end of file diff --git a/web-framework/nodejs/next/publish.yaml b/web-framework/nodejs/next/publish.yaml index 92ed53834..c168ff8e8 100755 --- a/web-framework/nodejs/next/publish.yaml +++ b/web-framework/nodejs/next/publish.yaml @@ -3,7 +3,7 @@ Type: Project Name: start-next-cap Provider: - 阿里云 -Version: 0.0.3 +Version: 0.0.4 Description: 本案例展示如何将 Next.js,一款功能强大的 React 框架,快速创建并部署到云原生应用开发平台 CAP。Next.js 专为开发高性能页面和应用而设计,提供流畅的浏览体验和高度优化的解决方案。 HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/next Organization: 阿里云函数计算(FC) diff --git a/web-framework/nodejs/next/src/build.yaml b/web-framework/nodejs/next/src/build.yaml index f90e696b6..e12c5a7e6 100644 --- a/web-framework/nodejs/next/src/build.yaml +++ b/web-framework/nodejs/next/src/build.yaml @@ -1,11 +1,23 @@ start_next: + default: + languages: + - nodejs20 + steps: + - run: npm install + path: ./code + - run: npm run build + path: ./code + - run: cp -r public .next/standalone/public + path: ./code + - run: cp -r static standalone/.next/static + path: ./code/.next defaultBuilder: languages: - nodejs20 steps: - - run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install + - run: npm install path: ./code - - run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm run build + - run: npm run build path: ./code - run: cp -r public .next/standalone/public path: ./code diff --git a/web-framework/nodejs/nuxt/publish.yaml b/web-framework/nodejs/nuxt/publish.yaml index 2c4d81bef..6d96bc3f4 100755 --- a/web-framework/nodejs/nuxt/publish.yaml +++ b/web-framework/nodejs/nuxt/publish.yaml @@ -1,7 +1,7 @@ Edition: 3.0.0 Type: Project Name: start-nuxt-cap -Version: 0.0.3 +Version: 0.0.4 Provider: - 阿里云 Description: 本案例展示了如何将 Nuxt.js,一款在前端开发者社区中非常流行的 Vue.js 框架,快速创建并部署到云原生应用开发平台 CAP。Nuxt.js 通过提供自动化的流程和强大的默认设置,使得构建快速和优化的 Web 应用程序变得简单。 diff --git a/web-framework/nodejs/nuxt/src/build.yaml b/web-framework/nodejs/nuxt/src/build.yaml index c41fd8ee6..ae8f82806 100644 --- a/web-framework/nodejs/nuxt/src/build.yaml +++ b/web-framework/nodejs/nuxt/src/build.yaml @@ -1,9 +1,17 @@ start_nuxt: + default: + languages: + - nodejs20 + steps: + - run: npm install --production + path: ./code + - run: npm run build + path: ./code defaultBuilder: languages: - nodejs20 steps: - - run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production + - run: npm install --production path: ./code - - run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm run build + - run: npm run build path: ./code \ No newline at end of file diff --git a/web-framework/nodejs/thinkjs/publish.yaml b/web-framework/nodejs/thinkjs/publish.yaml index 81ef4db70..21d9045bd 100755 --- a/web-framework/nodejs/thinkjs/publish.yaml +++ b/web-framework/nodejs/thinkjs/publish.yaml @@ -3,7 +3,7 @@ Type: Project Name: start-thinkjs-cap Provider: - 阿里云 -Version: 0.0.3 +Version: 0.0.4 Description: 本案例展示了如何将 ThinkJS,一款高效的 Node.js 框架,快速创建并部署到阿里云函数计算 FC。ThinkJS 采用了全新的 ES6/7 语法,提供了更优雅的异步代码编写方式,显著提高了开发效率。 HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/thinkjs Organization: 阿里云函数计算(FC) diff --git a/web-framework/nodejs/thinkjs/src/build.yaml b/web-framework/nodejs/thinkjs/src/build.yaml index 2e6be9587..53145c7f4 100644 --- a/web-framework/nodejs/thinkjs/src/build.yaml +++ b/web-framework/nodejs/thinkjs/src/build.yaml @@ -1,7 +1,13 @@ start_thinkjs: + default: + languages: + - nodejs20 + steps: + - run: npm install --production + path: ./code defaultBuilder: languages: - nodejs20 steps: - - run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production + - run: npm install --production path: ./code \ No newline at end of file diff --git a/web-framework/python/django/publish.yaml b/web-framework/python/django/publish.yaml index 2ee23569d..9446fbafb 100755 --- a/web-framework/python/django/publish.yaml +++ b/web-framework/python/django/publish.yaml @@ -3,7 +3,7 @@ Type: Project Name: start-django-cap Provider: - 阿里云 -Version: 0.0.3 +Version: 0.0.4 Description: 本案例展示了如何将 Django,一款非常受欢迎的 Web 框架,快速创建并部署到云原生应用开发平台 CAP。Django 以其强大的功能、易用性、完善的生态系统和长期的社区支持,广泛应用于 Web 应用开发、API 以及后台管理系统等多种场景。 HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/python/django Organization: 阿里云函数计算(FC) diff --git a/web-framework/python/django/src/build.yaml b/web-framework/python/django/src/build.yaml index 60903f0e6..dbcfdedbb 100644 --- a/web-framework/python/django/src/build.yaml +++ b/web-framework/python/django/src/build.yaml @@ -1,4 +1,12 @@ start_django: + default: + languages: + - python3.10 + steps: + - run: mkdir -p python + path: ./code + - run: pip install -r requirements.txt -t ./python + path: ./code defaultBuilder: languages: - python3.10 diff --git a/web-framework/python/fastapi/publish.yaml b/web-framework/python/fastapi/publish.yaml index 990a7c0a9..0ab5e6282 100644 --- a/web-framework/python/fastapi/publish.yaml +++ b/web-framework/python/fastapi/publish.yaml @@ -3,7 +3,7 @@ Type: Project Name: start-fastapi-cap Provider: - 阿里云 -Version: 0.0.3 +Version: 0.0.4 Description: 本案例展示了如何将 FastAPI,一款快速且高效的 Web 框架,快速创建并部署到云原生应用开发平台 CAP。FastAPI 以其出色性能、自动文档生成、数据验证和转换、类型注解支持等特点。 Organization: 阿里云函数计算(FC) Effective: Public diff --git a/web-framework/python/fastapi/src/build.yaml b/web-framework/python/fastapi/src/build.yaml index f849dc488..1ad1cc2e0 100644 --- a/web-framework/python/fastapi/src/build.yaml +++ b/web-framework/python/fastapi/src/build.yaml @@ -1,4 +1,12 @@ start_fastapi: + default: + languages: + - python3.10 + steps: + - run: mkdir -p python + path: ./code + - run: pip install -r requirements.txt -t ./python + path: ./code defaultBuilder: languages: - python3.10 diff --git a/web-framework/python/flask/publish.yaml b/web-framework/python/flask/publish.yaml index 84f53f0fb..1f1d99ad6 100755 --- a/web-framework/python/flask/publish.yaml +++ b/web-framework/python/flask/publish.yaml @@ -3,7 +3,7 @@ Type: Project Name: start-flask-cap Provider: - 阿里云 -Version: 0.0.3 +Version: 0.0.4 Description: 本案例展示了如何将 Flask,一款非常受欢迎的 Web 框架,快捷创建并部署到云原生应用开发平台 CAP。Flask 以其轻量级、简洁性和易用性著称,特别适用于小型、简单的 Web 应用或 API 开发。 HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/python/flask Organization: 阿里云函数计算(FC) diff --git a/web-framework/python/flask/src/build.yaml b/web-framework/python/flask/src/build.yaml index 1e84daeec..1fb0491e4 100644 --- a/web-framework/python/flask/src/build.yaml +++ b/web-framework/python/flask/src/build.yaml @@ -1,4 +1,12 @@ start_flask: + default: + languages: + - python3.10 + steps: + - run: mkdir -p python + path: ./code + - run: pip install -r requirements.txt -t ./python + path: ./code defaultBuilder: languages: - python3.10 diff --git a/web-framework/python/tornado/publish.yaml b/web-framework/python/tornado/publish.yaml index 8c793b548..0cc9d471c 100755 --- a/web-framework/python/tornado/publish.yaml +++ b/web-framework/python/tornado/publish.yaml @@ -1,7 +1,7 @@ Edition: 3.0.0 Type: Project Name: start-tornado-cap -Version: 0.0.3 +Version: 0.0.4 Provider: - 阿里云 Description: 本案例展示了如何将 Tornado,一款优秀的 Web 框架,快速搭建并部署到云原生应用开发平台 CAP。Tornado 以其优异的性能和灵活的设计著称,广泛应用于构建高性能的 Web 应用程序、实时 Web 服务、长连接的实时通信以及网络爬虫等领域。 diff --git a/web-framework/python/tornado/src/build.yaml b/web-framework/python/tornado/src/build.yaml index 44719f152..9239b4d62 100644 --- a/web-framework/python/tornado/src/build.yaml +++ b/web-framework/python/tornado/src/build.yaml @@ -1,7 +1,13 @@ start_tornado: + default: + languages: + - python3.10 + steps: + - run: pip3 install -r requirements.txt -t . + path: ./code defaultBuilder: languages: - python3.10 steps: - - run: PATH=/usr/local/envs/py37/bin:$PATH && pip3 install -r requirements.txt -t . + - run: pip3 install -r requirements.txt -t . path: ./code \ No newline at end of file diff --git a/web-framework/python/webpy/publish.yaml b/web-framework/python/webpy/publish.yaml index e9e159956..a64c32353 100755 --- a/web-framework/python/webpy/publish.yaml +++ b/web-framework/python/webpy/publish.yaml @@ -1,7 +1,7 @@ Edition: 3.0.0 Type: Project Name: start-webpy-cap -Version: 0.0.3 +Version: 0.0.4 Provider: - 阿里云 Description: 本案例展示了如何将 Web.py,一款简单而功能强大的 Web 框架,快速创建并部署到云原生应用开发平台 CAP。Web.py 其轻量级、强大的 URL 路由系统、内置模板引擎和灵活的数据库集成能力,广泛应用于构建 Web 应用程序和 RESTful API。 diff --git a/web-framework/python/webpy/src/build.yaml b/web-framework/python/webpy/src/build.yaml index 4298ca4a3..5a4cbca0f 100644 --- a/web-framework/python/webpy/src/build.yaml +++ b/web-framework/python/webpy/src/build.yaml @@ -1,7 +1,13 @@ start_webpy: + default: + languages: + - python3.10 + steps: + - run: pip3 install -r requirements.txt -t . + path: ./code defaultBuilder: languages: - python3.10 steps: - - run: PATH=/usr/local/envs/py37/bin:$PATH && pip3 install -r requirements.txt -t . + - run: pip3 install -r requirements.txt -t . path: ./code \ No newline at end of file