Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy #6

Open
goldstine opened this issue May 16, 2023 · 0 comments
Open

Deploy #6

goldstine opened this issue May 16, 2023 · 0 comments

Comments

@goldstine
Copy link
Owner

https://goldstine.github.io/deploy/

application deploy

Koa Js服务部署到服务器上

Koa Js服务容器化,部署Okteto提供的K8S环境里

Koa Js服务部署到vercel ,vercel提供免费的Serverless Function ,类似于AWS Lambda

Koa Js部署到AWS Lambda,使用一个serverless-http框架转化

关于AWS Lambda:

https://zhuanlan.zhihu.com/p/415577362

https://zhuanlan.zhihu.com/p/351889768

Koa Js

Koa Js是由Express Js设计的Web框架

Vercel

Vercel是一个用来部署前端应用的云平台,但也可以用来构建轻量级的事件驱动API,并部署到全球边缘网络。

国内类似于Vercel平台 ,开源运行时社区 osrc.com

OSRC 应用是基于云原生系统可运行的 无状态 应用,通过 OSRC 发布的 CI 工具,可以快速发布应用,相关案例分享见: OSRC 实战案例 - 赫兹跳动部署过程 ,并可以在 OSRC 社区分享给其他人。

视频链接:注册 Vercel,安装 vercel-cli

大纲链接:注册Vercel,安装vercel-cli

官网:Vercel
Vercel和Github的区别

  Vercel是网站部署
  Github是代码网盘

什么是Vercel

  支持部署静态网页和动态接口
  自带域名 https
  自带丰富的模板
  官方支持Node.js、Go、Python、Ruby。

安装vercel命令行工具

  Download Vercel CLI – Vercel
  npm i -g vercel
  yarn global add vercel
  [[Vercel常用命令]]

npm和yarn的区别

  都是包管理工具,不过一般用yarn,因为下载速度更快

Ref:

https://www.zhihu.com/question/529047706

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant