We have an exiting app at another Fly.io account hosted at https://copi.securedelivery.org/ that we have redeployed at https://copi.owaspcornucopia.org/ on a new account, but I am having difficulties with getting the phoenix server to serve the routes.
I started with staging the code at heroku. The app is running just fine there, but then I tried the old fly.toml and dockerFile config that was used last year and I can’t seem to get it work.
Here is the release step on heroku: cornucopia/copi.owasp.org/compile at 9f1543f2aabf4262c86c3b9cee732a1de203c80f · OWASP/cornucopia · GitHub
This is the dockerfile: cornucopia/copi.owasp.org/Dockerfile at 9f1543f2aabf4262c86c3b9cee732a1de203c80f · OWASP/cornucopia · GitHub
and fly.toml: copi/fly.toml at 822f1d2a490b952adfcdb6b7d779c28b4e6bbfac · secure-delivery/copi · GitHub
The env.sh.eex: cornucopia/copi.owasp.org/rel/env.sh.eex at 8023bb94a18457d12dc50b5d570f9132b218482c · OWASP/cornucopia · GitHub
and runtime.exs: cornucopia/copi.owasp.org/config/runtime.exs at 8023bb94a18457d12dc50b5d570f9132b218482c · OWASP/cornucopia · GitHub
After enabling debug mode, this is the error I am getting:
As you can see, the route that throws a 404 is there even though it complains that it is missing.
I am thinking that there may be some step I am missing or some config. I just can’t seem to understand what it could be.