gcp 大佬有话说 :
将E5SubBot 部署到Pivotal / Cloud Foundry
本帖最后由 gcp 于 2020-6-27 00:50 编辑
1.
git clone https://github.com/iyear/E5SubBot.git
cd E5SubBot
添加文件 manifest.yml
—
applications:
– name: E5SubBot
memory: 128M
disk_quota: 128M
health-check-type: process
no-route: true
buildpacks:
– go_buildpack
env:
TZ: "Asia/Shanghai"
2. 创建tgbot
https://docs.microsoft.com/zh-cn/azure/bot-service/bot-service-channel-connect-telegram
3. 设置config.yml,mysql 可以用免费的ClearDB Spark计划 。
https://github.com/iyear/E5SubBot/blob/master/README_zhCN.md#%E9%83%A8%E7%BD%B2%E9%85%8D%E7%BD%AE
https://pic.downk.cc/item/5ef61b1014195aa594e94d95.jpg
https://pic.downk.cc/item/5ef61b1314195aa594e94efb.jpg
https://pic.downk.cc/item/5ef61b0d14195aa594e94bad.jpg
4. 使用cloud foundry cli
cf api api.run.pivotal.io
cf login
cf push -f manifest.yml
hjvn2211445 大佬有话说 :
前排https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif
小沐同学 大佬有话说 :
已经部署到服务器了 这玩意把我封了不想在**了
gcp 大佬有话说 :
servicecleardb 的连接参数可以从变量VCAP_SERVICES读取,
不过要改动代码,还是手动添加简单 yc006t
https://pic.downk.cc/item/5ef61eb714195aa594eaa750.jpg
mao 大佬有话说 :
啥?还能用?https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif