I deployed a template Swift Vapor project but the page is loading endlessly

Hey,

I’ve deployed an empty Swift Vapor template project by following the tutorial here: Vapor: Deploy → Fly

I have not done anything else besides those steps in the tutorial.

The deployment worked, the dashboard says “Deployed”, but when I try to open the project’s domain, the page just loads endlessly. I’ve checked the logs and they just say this:

2024-03-28T20:45:56.610 app[732871724ad185] ams [info] INFO Starting init (commit: 88af1610)...
2024-03-28T20:45:56.624 app[732871724ad185] ams [info] INFO Preparing to run: `./App serve --env production --hostname 0.0.0.0 --port 8080` as vapor
2024-03-28T20:45:56.629 app[732871724ad185] ams [info] INFO [fly api proxy] listening at /.fly/api
2024-03-28T20:45:56.632 runner[732871724ad185] ams [info] Machine created and started in 8.12s
2024-03-28T20:45:56.637 app[732871724ad185] ams [info] 2024/03/28 20:45:56 listening on XXXXX (not sure if this is an IP I should not share)
2024-03-28T20:45:56.707 app[732871724ad185] ams [info] [ NOTICE ] Server starting on http://0.0.0.0:8080

It looks fine to me :thinking:

Is there anything I can do to debug this? I’m kind of lost.

EDIT: When I ssh into the machine and run curl 0.0.0.0:8080, it returns “It works!” which means the server is running (it’s the default message for the template project)…

But it still isn’t reachable from outside (the page is still loading endlessly) :thinking: This is really strange. It must be some simple error somewhere.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.