代码拉取完成,页面将自动刷新
中文 | English
将一个传统框架部署到阿里云 Serverless 平台的方法有很多,可以选择 Custom、Custom Container 以及原生编程语言的运行时。这其中 Custom 和原生语言运行时方案,除了启动命令/入口函数不同之外,区别并不是很大,可以根据自己需求进行实现,Custom Container 方案相对来说更简单,但是镜像的冷启动速度相对 Custom 和原生语言运行时比较慢。
目前本案例仓库收录以下常见框架的部署案例:
No. | Nodejs | Python | PHP | Go | Java | Others |
---|---|---|---|---|---|---|
1 | Express [custom] | :fire::fire:Flask [python3] | Think PHP [custom] | BeeGo [custom] | Tomcat/Jetty | Gatsby |
2 | Egg [custom] | Tornado [custom] | laravel [custom] | Gin [custom] | SpringBoot [custom] | Hugo [custom] |
3 | Nextjs [custom] | Bottle [python3] | Discuz [custom] | Iris [custom] | Quarkus | |
4 | Nuxtjs [custom] | Web.py [python3] | :fire::fire::fire: WordPress [custom] | |||
5 | :fire::fire::fire: Hapi [custom] | Django [python3] | :fire::fire::fire: Zblog [custom] | |||
6 | Koa [custom] | FastAPI [custom] | Ecshop [custom] | |||
7 | Nest [custom] | Web2py | Metinfo [custom] | |||
8 | Midway-koa [custom] | Pyramid [python3] | Whatsns [custom] | |||
9 | Vue.js [custom] | Typecho [custom] | ||||
9 |
除了上面的案例之外,还提供了两个简单的实践应用:
- 基于 Express 框架的 todoList 应用:
s init todolist-app
- 基于 Django 框架的博客应用:
s init django-blog
SSR 框架:
- nuxt-ssr:
s init start-nuxt-ssr
Nginx 框架:
- nginx:
s init start-nginx
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。