How to manually deploy phoenix liveview

Hello all
I’m a first time user and tried deploying a phoenix liveview to fly.io from my nixos machine.
I know the flyctl version is outdated. But I think it isn’t related…
Is there an easy manual way to deploy without the flyctl?

Update available 0.0.383 -> v0.0.395.
Run "flyctl version update" to upgrade.
==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-red-butterfly-5065 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
Sending build context to Docker daemon  162.3kB
[+] Building 1.8s (4/4) FINISHED                                               
 => CACHED [internal] load remote build context                           0.0s
 => CACHED copy /context /                                                0.0s
 => [internal] load metadata for docker.io/library/debian:bullseye-20220  0.9s
 => ERROR [internal] load metadata for docker.io/hexpm/elixir:1.14.0-erl  1.8s
------
 > [internal] load metadata for docker.io/hexpm/elixir:1.14.0-erlang-25.0.3-debian-bullseye-20220801-slim:
------
Error failed to fetch an image or build from source: error building: failed to solve with frontend dockerfile.v0: failed to create LLB definition: docker.io/hexpm/elixir:1.14.0-erlang-25.0.3-debian-bullseye-20220801-slim: not found

The versions since 0.0.383 fail to build on nix for some reason.

# https://r.ryantm.com/log/flyctl/2022-09-01.log
package github.com/Khan/genqlient: no Go files in /build/source/vendor/github.com/Khan/genqlient

Looks like a missing docker image on the pull. Try erlang 25.1 with 1.14.0 .

1 Like

ty
I’ll try it.

Each time something like this happens, I realize why I’m using nix.

2 Likes

I jumped to guix from nix two years ago. It’s like nix, but makes sense. You may need to nonguix channel for non-free stuff, but other than that, it’s waaay easier to use/figure out.

1 Like

good to know.
I’m currently happy with nix

7+ devices from 1 flakes config, from router, desktop, server
all with zfs.

If nix would disappear, I’ll definitely go to guix. If they both disappear, I’ll stop user computers until there is a good alternative. Once you go this route …

1 Like