Rails API failed to deploy - release command failed

Hi, I tried to deploy my rails api app, but it looks like something went wrong and I have no idea about it. Could anyone help me to figure it out?
Thank you!!

p.s. I have deployed the app to Heroku before, it went well.

Here is the app source code: GitHub - lei900/rails-fairebase-auth: A simple CRUD app using Rails 7 API + Next.js + Firebase Authentication v9

$ fly deploy
Update available 0.0.435 -> 0.0.450.
Run "fly version update" to upgrade.
==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-bold-dust-8079 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 18.8s (0/1)                                                                                                                        
[+] Building 4.4s (26/26) FINISHED                                                                                                              
 => [internal] load remote build context                                                                                                   0.0s
 => copy /context /                                                                                                                        0.8s
 => resolve image config for docker.io/docker/dockerfile:experimental                                                                      1.6s
 => CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff  0.0s
 => [internal] load metadata for quay.io/evl.ms/fullstaq-ruby:3.1.2-jemalloc-bullseye-slim                                                 1.1s
 => [base 1/6] FROM quay.io/evl.ms/fullstaq-ruby:3.1.2-jemalloc-bullseye-slim@sha256:6a18708ef1cbc3dfa8c14a1fa3942d8b13c2ed2eebf5caa30e70  0.0s
 => CACHED [base 2/6] RUN mkdir /app                                                                                                       0.0s
 => CACHED [base 3/6] WORKDIR /app                                                                                                         0.0s
 => CACHED [base 4/6] RUN mkdir -p tmp/pids                                                                                                0.0s
 => CACHED [base 5/6] RUN curl https://get.volta.sh | bash                                                                                 0.0s
 => CACHED [base 6/6] RUN volta install node@16.14.2 yarn@1.22.19 &&     gem update --system --no-document &&     gem install -N bundler   0.0s
 => CACHED [stage-4 1/8] RUN --mount=type=cache,id=prod-apt-cache,sharing=locked,target=/var/cache/apt     --mount=type=cache,id=prod-apt  0.0s
 => CACHED [build_deps 1/1] RUN --mount=type=cache,id=dev-apt-cache,sharing=locked,target=/var/cache/apt     --mount=type=cache,id=dev-ap  0.0s
 => CACHED [gems 1/2] COPY Gemfile* ./                                                                                                     0.0s
 => CACHED [gems 2/2] RUN bundle install &&  rm -rf vendor/bundle/ruby/*/cache                                                             0.0s
 => CACHED [stage-4 2/8] COPY --from=gems /app /app                                                                                        0.0s
 => CACHED [stage-4 3/8] COPY --from=gems /usr/lib/fullstaq-ruby/versions /usr/lib/fullstaq-ruby/versions                                  0.0s
 => CACHED [stage-4 4/8] COPY --from=gems /usr/local/bundle /usr/local/bundle                                                              0.0s
 => CACHED [node_modules 1/3] COPY package*json ./                                                                                         0.0s
 => CACHED [node_modules 2/3] COPY yarn.* ./                                                                                               0.0s
 => CACHED [node_modules 3/3] RUN yarn install                                                                                             0.0s
 => CACHED [stage-4 5/8] COPY --from=node_modules /app/node_modules /app/node_modules                                                      0.0s
 => CACHED [stage-4 6/8] COPY . .                                                                                                          0.0s
 => CACHED [stage-4 7/8] RUN chmod +x /app/bin/* &&     sed -i 's/ruby.exe\r*/ruby/' /app/bin/* &&     sed -i '/^#!/aDir.chdir File.expan  0.0s
 => CACHED [stage-4 8/8] RUN bin/rails fly:build                                                                                           0.0s
 => exporting to image                                                                                                                     0.0s
 => => exporting layers                                                                                                                    0.0s
 => => writing image sha256:55abc7d00cdc48743284402883206b97b1ad6b5ff0d3ca2e6b45aa01b8daf011                                               0.0s
 => => naming to registry.fly.io/muddy-fire-5464:deployment-01GQ2292ZZKZHP82TZ22Z8WNVS                                                     0.0s
--> Building image done
==> Pushing image to fly
The push refers to repository [registry.fly.io/muddy-fire-5464]
d9c9347bcc19: Layer already exists 
6df26dff703a: Layer already exists 
fb7815ad7db9: Layer already exists 
135f49ee0589: Layer already exists 
3d0dfb5b46f3: Layer already exists 
245d2d048a34: Layer already exists 
c842fa902b76: Layer already exists 
e480fb63287d: Layer already exists 
89056bd08e95: Layer already exists 
bff0c6eb75bb: Layer already exists 
2920bf1c253e: Layer already exists 
5f70bf18a086: Layer already exists 
193d25333ae6: Layer already exists 
50f407b42369: Layer already exists 
a12586ed027f: Layer already exists 
deployment-01GQ2292ZZKZHP82TZ22Z8WNVS: digest: sha256:c5c99eb960ef2e50e48ae215c94f5d5eb4c88c2feddb431d9c0701868f378531 size: 3475
--> Pushing image done
image: registry.fly.io/muddy-fire-5464:deployment-01GQ2292ZZKZHP82TZ22Z8WNVS
image size: 560 MB
==> Creating release
--> release v2 created

--> You can detach the terminal anytime without stopping the deployment
==> Release command detected: bin/rails fly:release

--> This release will not be available until the release command succeeds.
         Starting instance
         Configuring virtual machine
         Pulling container image
         Unpacking image
         Preparing kernel init
         Configuring firecracker
         Starting virtual machine
         Starting init (commit: b8364bb)...
         Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
         no label, UUID=e778fd55-4e39-4065-a19a-f809d893b4f7
         Preparing to run: `bin/rails fly:release` as root
         2023/01/18 09:11:01 listening on [fdaa:0:eaaa:a7b:b4f0:80e7:e1c:2]:22 (DNS: [fdaa::3]:53)
         rails aborted!
         TypeError: no implicit conversion of nil into String
         /app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:293:in `map'
         /app/config/initializers/cors.rb:10:in `block (2 levels) in <main>'
         /app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:60:in `instance_eval'
         /app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:60:in `allow'
         /app/config/initializers/cors.rb:9:in `block in <main>'
         /app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:45:in `instance_eval'
         /app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:45:in `initialize'
         /app/vendor/bundle/ruby/3.1.0/gems/actionpack-7.0.4/lib/action_dispatch/middleware/stack.rb:37:in `new'
         /app/vendor/bundle/ruby/3.1.0/gems/actionpack-7.0.4/lib/action_dispatch/middleware/stack.rb:166:in `block in build'
         /app/vendor/bundle/ruby/3.1.0/gems/actionpack-7.0.4/lib/action_dispatch/middleware/stack.rb:162:in `each'
         /app/vendor/bundle/ruby/3.1.0/gems/actionpack-7.0.4/lib/action_dispatch/middleware/stack.rb:162:in `inject'
         /app/vendor/bundle/ruby/3.1.0/gems/actionpack-7.0.4/lib/action_dispatch/middleware/stack.rb:162:in `build'
         /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:512:in `synchronize'
         /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:512:in `app'
         /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/application/finisher.rb:52:in `block in <module:Finisher>'
         /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:32:in `run'
         /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:61:in `block in run_initializers'
         /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:60:in `run_initializers'
         /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/application.rb:372:in `initialize!'
         /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
         /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
         /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
         /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
         /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
         /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
         /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
         /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
         /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
         Tasks: TOP => fly:release => db:migrate => db:load_config => environment
         (See full trace by running task with --trace)
         Starting clean up.
Error release command failed, deployment aborted

logs

$ flyctl logs
Update available 0.0.435 -> 0.0.450.
Run "flyctl version update" to upgrade.
2023-01-18T09:07:38Z app[e238884b] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
2023-01-18T09:07:38Z app[e238884b] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
2023-01-18T09:07:38Z app[e238884b] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
2023-01-18T09:07:38Z app[e238884b] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
2023-01-18T09:07:38Z app[e238884b] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
2023-01-18T09:07:38Z app[e238884b] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:51:in `invoke'
2023-01-18T09:07:38Z app[e238884b] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
2023-01-18T09:07:38Z app[e238884b] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-01-18T09:07:38Z app[e238884b] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-01-18T09:07:38Z app[e238884b] nrt [info]Tasks: TOP => fly:release => db:migrate => db:load_config => environment
2023-01-18T09:07:38Z app[e238884b] nrt [info](See full trace by running task with --trace)
2023-01-18T09:07:39Z app[e238884b] nrt [info]Starting clean up.
2023-01-18T09:10:43Z runner[80e70e1c] nrt [info]Starting instance
2023-01-18T09:10:44Z runner[80e70e1c] nrt [info]Configuring virtual machine
2023-01-18T09:10:44Z runner[80e70e1c] nrt [info]Pulling container image
2023-01-18T09:10:54Z runner[80e70e1c] nrt [info]Unpacking image
2023-01-18T09:11:00Z runner[80e70e1c] nrt [info]Preparing kernel init
2023-01-18T09:11:00Z runner[80e70e1c] nrt [info]Configuring firecracker
2023-01-18T09:11:00Z runner[80e70e1c] nrt [info]Starting virtual machine
2023-01-18T09:11:01Z app[80e70e1c] nrt [info]Starting init (commit: b8364bb)...
2023-01-18T09:11:01Z app[80e70e1c] nrt [info]Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
2023-01-18T09:11:01Z app[80e70e1c] nrt [info]no label, UUID=e778fd55-4e39-4065-a19a-f809d893b4f7
2023-01-18T09:11:01Z app[80e70e1c] nrt [info]Preparing to run: `bin/rails fly:release` as root
2023-01-18T09:11:01Z app[80e70e1c] nrt [info]2023/01/18 09:11:01 listening on [fdaa:0:eaaa:a7b:b4f0:80e7:e1c:2]:22 (DNS: [fdaa::3]:53)
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]rails aborted!
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]TypeError: no implicit conversion of nil into String
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:300:in `quote'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:300:in `block in origins'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:293:in `map'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:293:in `origins'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/config/initializers/cors.rb:10:in `block (2 levels) in <main>'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:60:in `instance_eval'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:60:in `allow'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/config/initializers/cors.rb:9:in `block in <main>'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:45:in `instance_eval'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rack-cors-1.1.1/lib/rack/cors.rb:45:in `initialize'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/actionpack-7.0.4/lib/action_dispatch/middleware/stack.rb:37:in `new'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/actionpack-7.0.4/lib/action_dispatch/middleware/stack.rb:37:in `build'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/actionpack-7.0.4/lib/action_dispatch/middleware/stack.rb:166:in `block in build'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/actionpack-7.0.4/lib/action_dispatch/middleware/stack.rb:162:in `each'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/actionpack-7.0.4/lib/action_dispatch/middleware/stack.rb:162:in `inject'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/actionpack-7.0.4/lib/action_dispatch/middleware/stack.rb:162:in `build'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:516:in `block in app'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:512:in `synchronize'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:512:in `app'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/application/finisher.rb:52:in `block in <module:Finisher>'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:32:in `instance_exec'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:32:in `run'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:61:in `block in run_initializers'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:60:in `run_initializers'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/application.rb:372:in `initialize!'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/config/environment.rb:5:in `<main>'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/application.rb:348:in `require_environment!'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/application.rb:511:in `block in run_tasks_blocks'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block in perform'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:51:in `invoke'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-01-18T09:11:02Z app[80e70e1c] nrt [info]Tasks: TOP => fly:release => db:migrate => db:load_config => environment
2023-01-18T09:11:02Z app[80e70e1c] nrt [info](See full trace by running task with --trace)
2023-01-18T09:11:03Z app[80e70e1c] nrt [info]Starting clean up.
# fly.rake

# commands used to deploy a Rails application
namespace :fly do
  # BUILD step:
  #  - changes to the filesystem made here DO get deployed
  #  - NO access to secrets, volumes, databases
  #  - Failures here prevent deployment
  task :build

  # RELEASE step:
  #  - changes to the filesystem made here are DISCARDED
  #  - full access to secrets, databases
  #  - failures here prevent deployment
  task release: "db:migrate"

  # SERVER step:
  #  - changes to the filesystem made here are deployed
  #  - full access to secrets, databases
  #  - failures here result in VM being stated, shutdown, and rolled back
  #    to last successful deploy (if any).
  task server: :swapfile do
    sh "bin/rails server"
  end

  # optional SWAPFILE task:
  #  - adjust fallocate size as needed
  #  - performance critical applications should scale memory to the
  #    point where swap is rarely used.  'fly scale help' for details.
  #  - disable by removing dependency on the :server task, thus:
  #        task :server do
  task :swapfile do
    sh "fallocate -l 512M /swapfile"
    sh "chmod 0600 /swapfile"
    sh "mkswap /swapfile"
    sh "echo 10 > /proc/sys/vm/swappiness"
    sh "swapon /swapfile"
  end
end

This would happen if ENV[“CLIENT_URL”] is null. See:

1 Like

Solved it!
Thank you so much!!!