我有一个简单的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.我需要做些什么来解决这个问题呢?
发布于 2019-08-18 20:03:47
是的,根据this SO question的说法,我必须这样做,它起作用了:
heroku buildpacks:clear
heroku buildpacks:set heroku/nodejs
heroku buildpacks:add heroku/rubyhttps://stackoverflow.com/questions/57542657
复制相似问题