Hey Fly! I just followed Chris’s example on creating a live Fly Elixir application in two-commands. I ran into a couple issues, so wanted to document here in case anyone else experiences the same:
If you have issues running migrations, make sure you have socket_options: [:inet6] configured for your app Repo.
Once you have your migrations running, your app won’t start unless your Endpoint has server: true configured (I did this in config/prod.exs).
Also in your app Endpoint, update url: [host: "example.com", port: 80] to use the actual hostname of your server. It might be possible to pull this from the environment.
That’s it! All in all, it was super easy to get started and I’m looking forward to deploying many more apps on Fly.
I take succes from fly launch and deploy with Elixir Phoenix LiveView 1.6 with Tailwindcss project.
Now I trying config and deploy same project with Bulmacss lib.
I hope soon release source code from my POCs.
I don’t understand the item 3 that you report, this is configure into prod.exs?
I was able to resolve hostname and Ecto’s inet6 issues but I have been scratching my head for hours until I found your post and saw that server: true option. I feel a bit dumb because I still have no idea what are the ins and outs of this one.
Moreover I was confused when I ssh’d the app, attempting to start the server manually and saw Protocol 'inet6_tcp': the name myapp@1435f6d2 seems to be in use by another Erlang node.
I assumed “Errr, it should be running, right ?” but I guess a node is attributed even if the server is off.
I guess I have to stop playing around and go back reading the FM, at the “releases” chapter .
IMHO that’s a big miss in the docs not to mention those “tips” (that i would personally call prerequisites…).
It may be deceptive for newcomers not te see the magic happen at the first attempt !
Thank you very much @jtormey for sharing and congrats to everyone at Fly for the great work