新建fly.toml,代码如下
app = 'noisememo'
primary_region = 'hkg'
[build]
image = 'ghcr.io/usememos/memos:latest'
[[mounts]]
source = "memos_data"
destination = "/var/opt/memos"
[http_service]
internal_port = 5230
force_https = true
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 0
然后运行flyctl deploy