无法使用webpacker将rails应用程序部署到heroku



环境

  • 导轨 5.1.5
  • 网络包 3.11.0

错误信息

remote:        Webpacker is installed 🎉 🍰
remote:        Using /tmp/build_a60546bb726d2fa7f4b8b4ac052f461e/config/webpacker.yml file for setting up webpack paths
remote:        Compiling…
remote:        Compilation failed:
remote:        bundler: failed to load command: webpack (/tmp/build_a60546bb726d2fa7f4b8b4ac052f461e/vendor/bundle/ruby/2.3.0/bin/webpack)
remote:        Errno::ENOENT: No such file or directory - /tmp/build_a60546bb726d2fa7f4b8b4ac052f461e/node_modules/.bin/webpack

解决方案

heroku buildpacks:clear
heroku buildpacks:set heroku/nodejs
heroku buildpacks:add heroku/ruby

链接

  • https://github.com/rails/webpacker/issues/739
  • https://github.com/rails/webpacker/issues/1282
  • https://github.com/heroku/heroku-buildpack-ruby/issues/712

相关内容

  • 没有找到相关文章

最新更新