2017-08-07 3 views
1

資産をコンパイルwebpackerでスタックしている:Railsの5.1カピストラーノは、私はカピストラーノとレール5.1アプリケーションを展開しようとしていると、資産をコンパイルで立ち往生しているように見える

02:38 deploy:assets:precompile 
    01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile 
    01 yarn install v0.27.5 
    01 [1/4] Resolving packages... 
    01 [2/4] Fetching packages... 
    01 warning [email protected]: The platform "linux" is incompatible with this module. 
    01 info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. 
    01 [3/4] Linking dependencies... 
    01 [4/4] Building fresh packages... 
    01 Done in 48.92s. 
    01 Webpacker is installed 
    01 Using /project_name/releases/20170807195158/config/webpack/paths.yml file for setting up webpack paths 
    01 Compiling webpacker assets 

エラーがない、それだけでそこにとどまります何時間も。リモートサーバー上でこれを行うノードプロセスを調べると、CPUの100%が約5分間使用されていると表示され、プロセスは強制終了されるようですが、「資産のコンパイル」と表示されます。

答えて

0

バンドルexec rakeアセットを実行していると思われます。複数のアセットがある場合にリモートでプリコンパイルできません。

解決方法は、アセットをローカルでコンパイルしてから、リモートサーバーにrsyncすることでした。

関連する問題