2017-08-07 32 views
1

我試圖部署導軌5.1的應用程序與Capistrano的,它似乎在編制資產被卡住:的Rails 5.1 Capistrano的是停留在webpacker編制資產

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

似乎是執行bundle exec rake資產:當有多個資產失敗時,在遠程進行預編譯。

解決方案是在本地編譯資產,然後rsync它們到遠程服務器。

相關問題