Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
404 views
in Technique[技术] by (71.8m points)

ruby on rails - Capistrano fails compiling assets (or right after)

Whenever I try to deploy I get to deploy:assets:precompile and then things stop right at the "compiling..." step:

  INFO [2a7f255a] Finished in 16.140 seconds with exit status 0 (successful).
 DEBUG [26fcfc4a] Running if test ! -d /srv/ciao/releases/20210123210203; then echo "Directory does not exist '/srv/ciao/releases/20210123210203'" 1>&2; false; fi as [email protected]
 DEBUG [26fcfc4a] Command: if test ! -d /srv/ciao/releases/20210123210203; then echo "Directory does not exist '/srv/ciao/releases/20210123210203'" 1>&2; false; fi
 DEBUG [26fcfc4a] Finished in 0.240 seconds with exit status 0 (successful).
  INFO [da415407] Running $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile as [email protected]
 DEBUG [da415407] Command: cd /srv/ciao/releases/20210123210203 && ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.6.0" RAILS_ENV="production" RAILS_GROUPS="" ; $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile )
 DEBUG [da415407]   yarn install v1.22.5
 DEBUG [da415407]   [1/4] Resolving packages...
 DEBUG [da415407]   success Already up-to-date.
 DEBUG [da415407]   Done in 1.15s.
 DEBUG [da415407]   yarn install v1.22.5
 DEBUG [da415407]   [1/4] Resolving packages...
 DEBUG [da415407]   [2/4] Fetching packages...
 DEBUG [da415407]   info [email protected]: The platform "linux" is incompatible with this module.
 DEBUG [da415407]   info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
 DEBUG [da415407]   info [email protected]: The platform "linux" is incompatible with this module.
 DEBUG [da415407]   info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
 DEBUG [da415407]   [3/4] Linking dependencies...
 DEBUG [da415407]   warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
 DEBUG [da415407]   warning "webpack-dev-server > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
 DEBUG [da415407]   warning " > [email protected]" has unmet peer dependency "svelte@>= 3".
 DEBUG [da415407]   [4/4] Building fresh packages...
 DEBUG [da415407]   Done in 6.89s.
 DEBUG [da415407]   Compiling...
 DEBUG [da415407]   Compilation failed:

I'm able to run rake assets:precompile locally with no issues.

question from:https://stackoverflow.com/questions/65864450/capistrano-fails-compiling-assets-or-right-after

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...