kev*_*kev 9 ruby-on-rails heroku sprockets
我在推送到 heroku 存储库时遇到此错误
remote: rake aborted!
remote: Sprockets::DoubleLinkError: Multiple files with the same output path cannot be linked ("style.css")
remote: In "/tmp/build_f430cee0cae4a9543fac20926137c7cc/app/assets/config/manifest.js" these files were linked:
remote: - /tmp/build_f430cee0cae4a9543fac20926137c7cc/app/assets/stylesheets/style.css
remote: - /tmp/build_f430cee0cae4a9543fac20926137c7cc/app/assets/stylesheets/style.scss
Run Code Online (Sandbox Code Playgroud)
我已经尝试过这些建议:
heroku run rake tmp:clearheroku repo:reset -a <app name>heroku repo:purge_cache -a <app name>但当我推送到 Heroku 远程时,我仍然不断收到错误
对我来说,发生这种情况只是因为我有两个样式表,而我本应该只有一个. 就我而言,我有
myapp/app/assets/stylesheets.application.css
Run Code Online (Sandbox Code Playgroud)
和
myapp/app/assets/stylesheets.application.css.scss
Run Code Online (Sandbox Code Playgroud)
我应该只吃其中之一
我删除了application.css,问题就消失了