Using this tutorial and it deploys perfectly fine on Render.com. Trying to do the same on Fly.io and my site is not connecting, just infinite loading then dies.
From the logs below, nginx and php-fpm do spawn, but it doesn’t seem to connect to outside to show the webpages.
2022-04-22T04:04:57.067 app[07a60de4] sin [info] 2022-04-22 04:04:57,067 INFO spawned: ‘php-fpm’ with pid 740
2022-04-22T04:04:57.071 app[07a60de4] sin [info] 2022-04-22 04:04:57,070 INFO spawned: ‘nginx’ with pid 741
2022-04-22T04:04:57.121 app[07a60de4] sin [info] 2022/04/22 04:04:57 [notice] 741#741: using the “epoll” event method
2022-04-22T04:04:57.121 app[07a60de4] sin [info] 2022/04/22 04:04:57 [notice] 741#741: nginx/1.21.6
2022-04-22T04:04:57.121 app[07a60de4] sin [info] 2022/04/22 04:04:57 [notice] 741#741: built by gcc 10.3.1 20211027 (Alpine 10.3.1_git20211027)
2022-04-22T04:04:57.121 app[07a60de4] sin [info] 2022/04/22 04:04:57 [notice] 741#741: OS: Linux 5.12.2
2022-04-22T04:04:57.121 app[07a60de4] sin [info] 2022/04/22 04:04:57 [notice] 741#741: getrlimit(RLIMIT_NOFILE): 10240:10240
2022-04-22T04:04:57.122 app[07a60de4] sin [info] 2022/04/22 04:04:57 [notice] 741#741: start worker processes
2022-04-22T04:04:57.122 app[07a60de4] sin [info] 2022/04/22 04:04:57 [notice] 741#741: start worker process 742
2022-04-22T04:04:57.189 app[07a60de4] sin [info] [22-Apr-2022 04:04:57] NOTICE: fpm is running, pid 740
2022-04-22T04:04:57.189 app[07a60de4] sin [info] [22-Apr-2022 04:04:57] NOTICE: ready to handle connections
2022-04-22T04:04:58.193 app[07a60de4] sin [info] 2022-04-22 04:04:58,191 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-04-22T04:04:58.193 app[07a60de4] sin [info] 2022-04-22 04:04:58,191 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Given how it works fine elsewhere, I believe something about fly.toml is preventing things from working properly. Using the default doesn’t work.