mirror of
https://github.com/Finb/bark-server.git
synced 2026-04-27 06:35:49 +03:00
[GH-ISSUE #30] serverless deployment #24
Labels
No labels
enhancement
in progress
need test
pull-request
v2
v2
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bark-server#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 运行时的云函数计算服务上
@mritd commented on GitHub (Feb 3, 2021):
Currently we have not tested the severless service, obviously whether it supports.
当前并没有在 severless 服务上进行过测试,不确定是否支持。
@SokaOfficial commented on GitHub (Feb 8, 2021):
+1 Serverless is much cheaper!
@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,希望能有所帮助。
@Finb commented on GitHub (Mar 18, 2022):
github.com/Finb/bark-server@29f045981d已经支持 serverless 。先支持了一下 heroku 的一键部署
其他serverless 服务器可以使用
bark-server -serverless true 开启
开启后, bark-server 会读取系统环境变量 BARK_KEY 和 BARK_DEVICE_TOKEN, 需提前设置好。
BARK_KEY 可任意填写(不能填 push )
BARK_DEVICE_TOKEN 等新版 APP上线后 APP内查看,或先不填写,在 APP 添加 serverless 服务器地址后,在日志里查看 devicetoken 。