本文主要是介绍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使用的一些坑的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!