Question

Rails 7 (jsbundling-rails) building error (app platform)

I’m trying to deploy my rails 7 jsbundling , but I’ve an error on the build:

  1. ` [2022-02-28 11:56:29] Bundle completed (221.15s)
  2. [2022-02-28 11:56:29] Cleaning up the bundler cache.
  3. [2022-02-28 11:56:30] Removing bundler (2.1.4)
  4. [2022-02-28 11:56:32] -----> Detecting rake tasks
  5. [2022-02-28 11:56:42] -----> Precompiling assets
  6. [2022-02-28 11:56:42] Running: rake assets:precompile
  7. [2022-02-28 11:56:49] Yarn executable was not detected in the system.
  8. [2022-02-28 11:56:49] Download Yarn at https://yarnpkg.com/en/docs/install
  9. [2022-02-28 11:56:49] rake aborted!
  10. [2022-02-28 11:56:49] jsbundling-rails: Command build failed, ensure yarn is installed and "yarn build" runs without errors
  11. [2022-02-28 11:56:49] /layers/heroku_ruby/gems/vendor/bundle/ruby/3.0.0/gems/jsbundling-rails-1.0.2/lib/tasks/jsbundling/build.rake:5:in block (2 levels) in <main>'
  12. [2022-02-28 11:56:49] Tasks: TOP => assets:precompile => javascript:build
  13. [2022-02-28 11:56:49] (See full trace by running task with --trace)
  14. [2022-02-28 11:56:49] !
  15. [2022-02-28 11:56:49] ! Precompiling assets failed.
  16. [2022-02-28 11:56:49] !
  17. [2022-02-28 11:56:49] ERROR: failed to build: exit status 1
  18. [2022-02-28 11:56:55]
  19. [2022-02-28 11:56:55] For documentation on the buildpacks used to build your app, please see:
  20. [2022-02-28 11:56:55] Ruby: https://do.co/apps-buildpack-ruby
  21. [2022-02-28 11:56:55]
  22. [2022-02-28 11:56:55] ! Build failed (145)
  23. []`

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
February 13, 2023

Hey @admin245734,

I’ll recommend you to check https://do.co/apps-buildpack-ruby for documentation on the buildpacks used by Ruby.

Additionally, check the following message from your log :

  1. - [2022-02-28 11:56:49] (See full trace by running task with --trace)

Additionally, you can check the following Docs on how to Troubleshoot apps in App Platform:

https://docs.digitalocean.com/support/how-to-troubleshoot-apps-in-app-platform/

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.