【问题标题】:Failed deploying rails app with webpacker to heroku使用 webpacker 将 rails 应用程序部署到 heroku 失败
【发布时间】:2018-04-20 03:21:13
【问题描述】:

环境

  • Rails 5.1.5
  • webpack 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

【问题讨论】:

    标签: ruby-on-rails heroku webpacker


    【解决方案1】:

    解决方案

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

    链接

    【讨论】:

    • 这帮助我解决了我的应用程序中的问题。感谢发帖。
    猜你喜欢
    • 2018-03-31
    • 1970-01-01
    • 2018-07-15
    • 2020-02-20
    • 2015-07-02
    • 2018-08-21
    • 1970-01-01
    • 2015-12-25
    • 2011-04-23
    相关资源
    最近更新 更多