Please help me to deploy my small app on fly.io
During command ‘fly deploy’ I get such log with error:
=> [build 2/6] COPY Gemfile Gemfile.lock ./ 0.0s
=> [build 3/6] RUN bundle install && rm -rf ~/.bundle/ “/usr/local/bundle”/ruby//cache “/usr/local/bundle”/ruby//bundler/gems/*/.git && bundle exec bootsnap precompile --gemfile 103.2s
=> [build 4/6] COPY . . 0.0s
=> [build 5/6] RUN bundle exec bootsnap precompile app/ lib/ 0.8s
=> ERROR [build 6/6] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile 1.0s
[build 6/6] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile:
#0 1.026 bin/rails aborted!
#0 1.026 ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See GitHub - rails/execjs: Run JavaScript code from Ruby for a list of available runtimes. (ExecJS::RuntimeUnavailable)
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/execjs-2.9.1/lib/execjs/runtimes.rb:68:inautodetect' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/execjs-2.9.1/lib/execjs.rb:5:in
module:ExecJS’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/execjs-2.9.1/lib/execjs.rb:4:in<main>' #0 1.026 <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in
require’
#0 1.026 internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:inrequire' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in
require’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:inrequire' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/autoprefixer-rails-10.4.16.0/lib/autoprefixer-rails/processor.rb:4:in
’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/autoprefixer-rails-10.4.16.0/lib/autoprefixer-rails.rb:39:inrequire_relative' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/autoprefixer-rails-10.4.16.0/lib/autoprefixer-rails.rb:39:in
’
#0 1.026 internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:inrequire' #0 1.026 <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in
require’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:inrequire' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in
require’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/bootstrap-5.3.2/lib/bootstrap/engine.rb:3:in<main>' #0 1.026 <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in
require’
#0 1.026 internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:inrequire' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in
require’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:inrequire' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/bootstrap-5.3.2/lib/bootstrap.rb:61:in
register_rails_engine’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/bootstrap-5.3.2/lib/bootstrap.rb:11:inload!' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/bootstrap-5.3.2/lib/bootstrap.rb:75:in
’
#0 1.026 internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:inrequire' #0 1.026 <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in
require’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:inrequire' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in
require’
#0 1.026 /rails/config/application.rb:21:in<main>' #0 1.026 /rails/Rakefile:6:in
require_relative’
#0 1.026 /rails/Rakefile:6:in<main>' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/railties-7.1.2/lib/rails/commands/rake/rake_command.rb:43:in
block in with_rake’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/railties-7.1.2/lib/rails/commands/rake/rake_command.rb:41:inwith_rake' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/railties-7.1.2/lib/rails/commands/rake/rake_command.rb:20:in
perform’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/railties-7.1.2/lib/rails/command.rb:156:ininvoke_rake' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/railties-7.1.2/lib/rails/command.rb:73:in
block in invoke’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/railties-7.1.2/lib/rails/command.rb:149:inwith_argv' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/railties-7.1.2/lib/rails/command.rb:69:in
invoke’
#0 1.026 /usr/local/bundle/ruby/3.2.0/gems/railties-7.1.2/lib/rails/commands.rb:18:in<main>' #0 1.026 <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in
require’
#0 1.026 internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:inrequire' #0 1.026 /usr/local/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in
require’
#0 1.026 ./bin/rails:6:in `’
#0 1.026 (See full trace by running task with --trace)