First step is usually to check the logs to see if they report anything. Try running fly logs from your app’s local folder for a tail of the most recent entries. Do you see any errors?
I don’t know if you have any healthchecks for this app, but if not, it could be worth adding at least one (you can add e.g a tcp healthcheck and http healthcheck). Since if they fail, that stops your app deploying. If you don’t have any healthchecks defined, it may be that your app does appear to deploy successfully but is not actually running as expected. And so the error. That should show up in the logs, if so.
Yep, that’s right for getting to the logs. You can pass an app flag like that. So that works. And yes, sure looks like the app exists and is listening.
I haven’t used that Heroku wizard button myself so I’m not sure if you can set your own healthcheck (within a custom fly.toml file). But given the final line of that log, I’m not sure that would help. As it would suggest the healthcheck would pass.
Hmm. I wonder if this thread would offer any clues. In their case it was an Elixir app, however Lubien explains what Fly does:
When I reloaded the page I saw a load of errors in the logs regarding a failed import for an Algolia search module in .app/output/server.mjs with the message
Did you mean to import algoliasearch/lite.js?
This is strange as it works on heroku and vercel, I wonder if it is the node version or something… I will have to see if I can find a solution.
I decided to try deploy from my local environment but ran in to another issue that has me stumped, all in all not making much progress yet