[GH-ISSUE #30] serverless deployment #24

Closed
opened 2026-03-03 11:55:25 +03:00 by kerem · 4 comments
Owner

Originally created by @visoar on GitHub (Feb 3, 2021).
Original GitHub issue: https://github.com/Finb/bark-server/issues/30

Can bark-server deploy to aws lambda or other severless fuction sevices which has golang runtime.
是否可部署在 AWS lambda 或其他支持 go 运行时的云函数计算服务上

Originally created by @visoar on GitHub (Feb 3, 2021). Original GitHub issue: https://github.com/Finb/bark-server/issues/30 Can bark-server deploy to aws lambda or other severless fuction sevices which has golang runtime. 是否可部署在 AWS lambda 或其他支持 go 运行时的云函数计算服务上
kerem closed this issue 2026-03-03 11:55:26 +03:00
Author
Owner

@mritd commented on GitHub (Feb 3, 2021):

Currently we have not tested the severless service, obviously whether it supports.
当前并没有在 severless 服务上进行过测试,不确定是否支持。

<!-- gh-comment-id:772301999 --> @mritd commented on GitHub (Feb 3, 2021): Currently we have not tested the severless service, obviously whether it supports. 当前并没有在 severless 服务上进行过测试,不确定是否支持。
Author
Owner

@SokaOfficial commented on GitHub (Feb 8, 2021):

+1 Serverless is much cheaper!

<!-- gh-comment-id:774839669 --> @SokaOfficial commented on GitHub (Feb 8, 2021): +1 Serverless is much cheaper!
Author
Owner

@avtion commented on GitHub (Jun 12, 2021):

as far as I'm concerned, using serverless is better than deploy container on server, so i build a tencent cloud scf version. bark-serverless
我也觉得用Serverless服务会更有优势,所以实现了一个腾讯云SCF的版本 - bark-serverless,希望能有所帮助。

<!-- gh-comment-id:860005407 --> @avtion commented on GitHub (Jun 12, 2021): as far as I'm concerned, using serverless is better than deploy container on server, so i build a tencent cloud scf version. [bark-serverless](https://github.com/avtion/bark-serverless) 我也觉得用Serverless服务会更有优势,所以实现了一个腾讯云SCF的版本 - [bark-serverless](https://github.com/avtion/bark-serverless),希望能有所帮助。
Author
Owner

@Finb commented on GitHub (Mar 18, 2022):

github.com/Finb/bark-server@29f045981d 已经支持 serverless 。

先支持了一下 heroku 的一键部署

Deploy

其他serverless 服务器可以使用
bark-server -serverless true 开启
开启后, bark-server 会读取系统环境变量 BARK_KEY 和 BARK_DEVICE_TOKEN, 需提前设置好。

BARK_KEY 可任意填写(不能填 push )
BARK_DEVICE_TOKEN 等新版 APP上线后 APP内查看,或先不填写,在 APP 添加 serverless 服务器地址后,在日志里查看 devicetoken 。

<!-- gh-comment-id:1072019367 --> @Finb commented on GitHub (Mar 18, 2022): https://github.com/Finb/bark-server/commit/29f045981d05f1b9ba8d6eb197699494776da7f8 已经支持 serverless 。 先支持了一下 heroku 的一键部署 [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/finb/bark-server) 其他serverless 服务器可以使用 bark-server -serverless true 开启 开启后, bark-server 会读取系统环境变量 BARK_KEY 和 BARK_DEVICE_TOKEN, 需提前设置好。 BARK_KEY 可任意填写(不能填 push ) BARK_DEVICE_TOKEN 等新版 APP上线后 APP内查看,或先不填写,在 APP 添加 serverless 服务器地址后,在日志里查看 devicetoken 。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bark-server#24
No description provided.