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

你可能感兴趣的:(其他)