Joh*_*ohn 2 ruby-on-rails heroku ruby-on-rails-6
我有一个简单的Rails 6应用程序(仅API),在开发中工作正常,但是当部署到Heroku时,出现此错误:
Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: Compiling…
remote: Compilation failed:
remote: error Command "webpack" not found.
remote:
remote:
remote: !
remote: ! Precompiling assets failed.
Run Code Online (Sandbox Code Playgroud)
我需要怎么做才能解决这个问题?
是的,根据这个特殊问题,我必须这样做,并且它起作用了:
heroku buildpacks:clear
heroku buildpacks:set heroku/nodejs
heroku buildpacks:add heroku/ruby
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
200 次 |
| 最近记录: |