我在推送到 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
我已经尝试过这些建议:
- 我删除了 .css 文件并保留了 .scss (据我所知没有重复项)
- 清除临时目录
heroku run rake tmp:clear
- 重置回购协议
heroku repo:reset -a <app name>
heroku repo:purge_cache -a <app name>
但当我推送到 Heroku 远程时,我仍然不断收到错误
对我来说,这只是因为我有两张样式表,而我本来应该只有一张。就我而言,我有
myapp/app/assets/stylesheets.application.css
AND
myapp/app/assets/stylesheets.application.css.scss
我应该只吃其中之一
我删除了application.css
问题就消失了
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)