deploying failed

Hi, I am new to fly.io and I have problems deploying my rails app. my Ruby version is RUBY_VERSION “3.1.2” and this is the error message I have when I run fly deploy:

Error failed to fetch an image or build from source: error building: executor failed running [/bin/bash -c bin/rails fly:build]: exit code: 1

Can someone help out please

I’m getting similar messages working through my first Django deployments on fly.io, but there’s a lot more specific output just before that message.

Do you see anything before that line that indicates a specific issue?

this is what I got before that message: => ERROR [stage-3 7/7] RUN bin/rails fly:build

[stage-3 7/7] RUN bin/rails fly:build:                                       
#20 2.175 rails aborted!
#20 2.175 Don't know how to build task 'assets:precompile' (See the list of available tasks with `rails --tasks`)
1 Like