Assets precompile
shakhboz01
HOBBYOP

2 years ago

Hi, assetsprecompile is working on dev mode, but it gives the folliwing error in production:

Dockerfile:34
-------------------
32 |     # build phase
33 |     COPY . /app/.
34 | >>> RUN  bundle exec rake assets:precompile
35 |     RUN  bundle exec bootsnap precompile app/ lib/
36 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c bundle exec rake assets:precompile" did not complete successfully: exit code: 1
Error: Docker build failed

it is deploy details.

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

2 Replies

2 years ago

There is no error in those logs, only logs telling you what line the error happened on, so please send your full build logs -

https://bookmarklets.up.railway.app/log-downloader/


royalgiant
HOBBY

2 years ago

#16 2.885 /usr/local/rvm/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'

#16 2.885 /usr/local/rvm/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/cli.rb:28:in `start'

#16 2.885 /usr/local/rvm/gems/3.0.0/gems/bundler-2.5.6/exe/bundle:28:in `block in '

#16 2.885 /usr/local/rvm/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'

#16 2.885 /usr/local/rvm/gems/3.0.0/gems/bundler-2.5.6/exe/bundle:20:in `'

#16 2.885 /root/.rbenv/versions/3.0.0/bin/bundle:23:in `load'

#16 2.885 /root/.rbenv/versions/3.0.0/bin/bundle:23:in `<main>'

#16 2.885 Tasks: TOP =&gt; environment

#16 2.885 (See full trace by running task with --trace)



#16 ERROR: process "/bin/bash -ol pipefail -c bundle exec rake assets:precompile" did not complete successfully: exit code: 1



-----

&gt; [stage-0 12/16] RUN  bundle exec rake assets:precompile:

2.885 /usr/local/rvm/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/cli.rb:34:in `dispatch'

2.885 /usr/local/rvm/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'

2.885 /usr/local/rvm/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/cli.rb:28:in `start'

2.885 /usr/local/rvm/gems/3.0.0/gems/bundler-2.5.6/exe/bundle:28:in `block in '

2.885 /usr/local/rvm/gems/3.0.0/gems/bundler-2.5.6/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'

2.885 /usr/local/rvm/gems/3.0.0/gems/bundler-2.5.6/exe/bundle:20:in `'

2.885 /root/.rbenv/versions/3.0.0/bin/bundle:23:in `load'

2.885 /root/.rbenv/versions/3.0.0/bin/bundle:23:in `<main>'

2.885 Tasks: TOP =&gt; environment

2.885 (See full trace by running task with --trace)

-----



Dockerfile:27

-------------------

25 |     # build phase

26 |     COPY . /app/.

27 | &gt;&gt;&gt; RUN  bundle exec rake assets:precompile

28 |     RUN  bundle exec bootsnap precompile app/ lib/

29 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c bundle exec rake assets:precompile" did not complete successfully: exit code: 1



Error: Docker build failed

@brody


Loading...