Deploy failing for Rails 8 app

Hi. I have a simple Rails 8 app which I am suddenly not able to deploy anymore.

Running ‘fly deploy’ fails with this:

Running release_command: bin/rails fly:release
Starting machine

-------
 ✖ release_command failed
-------
Error release_command failed running on machine 32876703b56e68 with exit code 1.
Checking logs: fetching the last 100 lines below:
2025-03-17T07:09:45Z 2025-03-17T07:09:45.299968328 [01JPHEZ9C4NTB00ZESMY5NP354:main] Running Firecracker v1.7.0
2025-03-17T07:09:46Z  INFO Starting init (commit: d15e62a13)...
2025-03-17T07:09:46Z  INFO Preparing to run: `/rails/bin/docker-entrypoint bin/rails fly:release` as 1000
2025-03-17T07:09:46Z  INFO [fly api proxy] listening at /.fly/api
2025-03-17T07:09:46Z Machine started in 1.026s
2025-03-17T07:09:46Z 2025/03/17 07:09:46 INFO SSH listening listen_address=[fdaa:0:97e5:a7b:3a0:b103:63d:2]:22
2025-03-17T07:09:48Z Unrecognized command "fly:release" (Rails::Command::UnrecognizedCommandError)
2025-03-17T07:09:48Z  INFO Main child exited normally with code: 1
-------
Error: release command failed - aborting deployment. machine 32876703b56e68 exited with non-zero status of 1

Can anyone point me in the right directions in order to solve this?

This looks like a command in your framework. Can you see where it is defined in your app? It will be in your source code, or maybe in a Ruby plugin that you’ve installed.

Thanks! It was defined in my fly.toml. Removing it from this files solved the issue.

Presumably you are using PostgreSQL? If so, at this point you likely are no longer running migrations before every deploy. What you should have in your fly.toml is this:

Thanks, postgresql it is

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