I’ve just set up a new Hanami 2.2.1 app and run fly launch to see if I was able to deploy to Fly.io. flyctl keeps detecting a NodeJS app instead of ruby/hanami. Is there a way to set the language / app with flyctl instead of relying on autodetect?
Additionally, I saw that @rubys had spoken about a Dockerfile-hanami gem in the Hanami forum. Is this project still happing?
I’m not currently looking into it, but could be convinced to try again (last time I looked, it looked like Hanami had removed plugin support).
General thoughts…
What should a Dockerfile look like for a Hanami application? If you have one, you don’t need to worry about fly launch auto detecting…
If the Dockerfile is fairly generic, it is an easy matter for flyctl to detect hanami in the Gemfile and provide the Dockerfile.
This is where it gets interesting… what are the common variations… computers are good at if-then-else logic. Coding the if-then-else is easy (I can do it for you or talk you through it), what I’m locking is hanami experience.