6
나는 현재 webpacker와 함께 새로운 루비/레일 앱 설치를하고 있습니다. Heroku에 대한 모든 배포에는 실 종속성 (yarn install
실행)을 다시 설치하는 데 30 초 이상이 소요됩니다.Heroku Ruby/Rails 캐시 웹팩 + 배포 사이의 털실
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 "extract-text-webpack-plug[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]" 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
저는 현재 heroku-16
스택에 heroku/ruby
buildpack을 사용하고 있습니다. 번들러처럼 캐싱을 쉽게 수행 할 수있는 방법은 무엇입니까?
다음은 nodejs buildpack을 사용하는 방법에 대해 설명하는 레일스/webpacker에 대한 설명입니다. https://github.com/rails/webpacker/issues/405#issuecomment-332682225 –
레일스에서는 작동하지 않습니다. Heroku 설치 얀 의존도를 두 번에 걸쳐서 ... – Stussa
@DerekHopper의 링크에서 이전 사람들은 레일 프로젝트에서 bin/yarn을 삭제하여 레일이 deps를 다시 설치하지 못하도록 막았습니다. 어쩌면 그 중 하나를 시험해보고 효과가 있는지 확인할 수 있습니까? 캐싱 데프가 작동 할 때 원사 설치를 두 번 실행하는 것이 더 빠를 수도 있습니다. 그렇습니까? –