I’m trying to deploy my rails 7 jsbundling , but I’ve an error on the build:
- ` [2022-02-28 11:56:29] Bundle completed (221.15s)
-
- [2022-02-28 11:56:29] Cleaning up the bundler cache.
-
- [2022-02-28 11:56:30] Removing bundler (2.1.4)
-
- [2022-02-28 11:56:32] -----> Detecting rake tasks
-
- [2022-02-28 11:56:42] -----> Precompiling assets
-
- [2022-02-28 11:56:42] Running: rake assets:precompile
-
- [2022-02-28 11:56:49] Yarn executable was not detected in the system.
-
- [2022-02-28 11:56:49] Download Yarn at https://yarnpkg.com/en/docs/install
-
- [2022-02-28 11:56:49] rake aborted!
-
- [2022-02-28 11:56:49] jsbundling-rails: Command build failed, ensure yarn is installed and "yarn build" runs without errors
-
- [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>'
-
- [2022-02-28 11:56:49] Tasks: TOP => assets:precompile => javascript:build
-
- [2022-02-28 11:56:49] (See full trace by running task with --trace)
-
- [2022-02-28 11:56:49] !
-
- [2022-02-28 11:56:49] ! Precompiling assets failed.
-
- [2022-02-28 11:56:49] !
- [2022-02-28 11:56:49] ERROR: failed to build: exit status 1
-
- [2022-02-28 11:56:55]
- [2022-02-28 11:56:55] For documentation on the buildpacks used to build your app, please see:
-
- [2022-02-28 11:56:55] Ruby: https://do.co/apps-buildpack-ruby
- [2022-02-28 11:56:55]
-
- [2022-02-28 11:56:55] ! Build failed (145)
-
- []`
-
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!
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.
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 :
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/