Şu anda webpacker ile yepyeni bir ruby / ray uygulaması kurulumum var. Heroku'ya yapılan her dağıtım, iplik bağımlılıklarını yeniden yüklemek için 30 saniyeden daha uzun sürüyor (yarn install
çalıştırıyor).Heroku Ruby/Rails Önbellek Webpack + Dağıtıcılar Arasında İplik
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: info [email protected]: The platform "linux" is incompatible with this module.
remote: info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: [3/4] Linking dependencies...
remote: warning "[email protected]" has incorrect peer dependency "[email protected] || 7 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0-rc".
remote: warning "[email protected]" has incorrect peer dependency "[email protected] || 3".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^2.0.0 || ^3.0.0".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^3.1.0".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^2.0.0 || ^3.0.0".
remote: warning "[email protected]0.2" has incorrect peer dependency "[email protected]^1.0.30000697".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^4.0.0".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]*".
remote: warning "[email protected]" has incorrect peer dependency "[email protected] || 2 || 3".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^5.0.0".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^2.0.0".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^6.8.0".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]*".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^2.2.0 || ^3.0.0".
remote: warning "[email protected]" has incorrect peer dependency "[email protected]^1.0.0 || ^2.0.0 || ^3.0.0".
remote: [4/4] Building fresh packages...
remote: Done in 33.50s.
remote: Webpacker is installed
Şu anda heroku-16
yığın heroku/ruby
buildpack kullanıyorum. Önbelleğe alma işleminin, paketleyici için yaptığı gibi kolay bir yolu var mı?
Burada raylar/webpacker hakkında bir tartışma tartışılıyor: http://github.com/rails/webpacker/issues/405#issuecomment-332682225 –
Bu, Rails ile çalışmaz. Heroku 'ya iplik bağımlılıklarını iki kez takar ... – Stussa
@DerekHopper linkinde daha önceki insanlar, rayların raydan çıkmasını önlemek için raylar projesinden "bin/iplik" i silme ile başarıya ulaştılar. Belki bunu deneyebilir ve çalışıp çalışmadığını görebilirsiniz. Ayrıca, iki kez iplik yüklemesini çalıştırmak için muhtemelen daha hızlıdır; –