Closed ChrisZou closed 3 years ago
I'm facing the same issue. Any update on this?
I had the same problem and in my case I did 2 things:
manifest.js
file in app/assets/config
which now contain only this one line:
//= link_tree .
command "RAILS_ENV=#{fetch(:rails_env)} bundle exec rails webpacker:yarn_install"
before I invoke rails:assets_precompile
in deploy.rb
With this 2 things precompiling assets with mina works as intended 🙂
I think I later found out the cause of the issue. It was that the yarn
command was not in my ssh PATH, since I installed yarn using linuxbrew and it was not in the default PATH of a ssh connection. Add /the/path/of/my/linuxbrew/bin
to PATH and it should be working all right.
Hi, I ran into an error without any detail info when running
mina deploy
:My
config/deploy.rb
content:The previous steps(bundle installing, db migration) seem to be working fine.
My env: Ruby 2.7.0 Rails 6.0.2.1 Ubuntu 18.04
Any idea why and how to fix it?