Hi there,
I recently migrated an Elixir app to Fly.io and it works very well so far except for the speed of deployment and the migration. I followed the guide (Deploy an Elixir Phoenix Application) to configure my app.
Regarding the issue with the speed of deployment, whenever I run flyctl deploy
, the process hangs for anything between 5 and 10 minutes on the following step (see below):
==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-empty-feather-57 ready
==> Building image with Buildpacks
--> docker host: 20.10.12 linux x86_64
20: Pulling from heroku/buildpacks
Digest: sha256:14b5c97bc4319c128d210e0054299c5bfe8fd3200b77bf442e86760011529e1f
Status: Image is up to date for heroku/buildpacks:20
20: Pulling from heroku/pack
Digest: sha256:d2a6f44fbf59ef7d5a2fdb3b9dd790153451603b7fa6e7f71ae6821300a44a13
Status: Image is up to date for heroku/pack:20
Downloading from https://cnb-shim.herokuapp.com/v1/hashnuke/elixir
1.89 MB/-1 B
Do you know any way to speed up the building process? It looks to me like downloading the buildpack is very slow.
The second issue regarding the migrations is simple: the migrations simply do not run. Is there anyway to specify a release command? I did not alter the generated fly.toml configuration yet.
Thanks for your help!