flyio使用的一些坑

首先,Windows环境安装 flyctl 需要用最新版的Power shell,否则pwsh命令不能用

务必使用最新版的Powershell

其次,真正创建App时,需要在 CMD 终端下运行,否则在 git bash 可能报错

$ fly launch --now
Creating app in D:\test\mslearn\python-hellofly-flask
Scanning source code
Detected a Python app
Using the following build configuration:
        Builder: paketobuildpacks/builder:base
? Choose an app name (leave blank to generate one): Error: Incorrect function.

使用fly deploy 部署,会报错

fly deploy
==> Verifying app config
Validating C:\Users\Administrator\feiflydemo\fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
[33mWARN [0mFailed to start remote builder heartbeat: failed building options: failed probing "personal": context deadline exceeded
Error: failed to fetch an image or build from source: error connecting to docker: failed building options: failed probing "personal": context deadline exceeded

解决办法,输入如下命令

fly wireguard reset

参见: Eror "Failed to start remote builder heartbeat: failed building options: failed probing "personal": context deadline exceeded" - Questions / Help - Fly.io

Flyio与axios是两种常用的JavaScript库,用于进行HTTP请求。它们有以下几点不同: 1. 大小和适用平台:Flyio相比axios体积更小,对于有限制文件大小的平台,如微信小程序Flyio更适用。Flyio还支持更多的平台,包括Node.js、微信小程序、Weex、React Native、Quick App和浏览器。 2. Promise支持:Flyio是基于Promise的解决方案,可以在任何能够执行JavaScript的环境中运行,并提供统一的API。 总之,Flyio和axios都是优秀的HTTP请求库,但在不同的应用场景下,可能有不同的选择依赖于项目的需求。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [flyio 在微信小程序中的二次封装](https://blog.csdn.net/halo1416/article/details/104410649)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [原生微信小程序flyio封装多baseURL配置请求,如同axios一样非常爽利的使用api](https://blog.csdn.net/qq_29101609/article/details/102823115)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值