Existing Rails app errors out on fly-deploy

To answer your first question, after I deleted the Gemfile.lock and initially deployed, then ran bundle install I could run subsequent fly deploys with no trouble. So there must have been a problem with the file. Likely I had previously updated something incorrectly.

Question on Ports:
There are ports listed in the Docker file: ENV PORT 8080
and the fly.toml file: [env] PORT = "8080" and
internal_port = 8080

Are these all referring to the same thing? Or is one for what the public is routed to (should be the React frontend) and the other for where the Rails API will be located?

I started messing with these and got the “Failed due to unhealthy allocations” error, which I believe is due to the Ports being incorrect.