Heroku 无法读取我的 .slug-post-clean 文件

Heroku can't read my .slug-post-clean file

提问人:cher 提问时间:10/27/2023 最后编辑:Chrischer 更新时间:10/29/2023 访问量:17

问:

我使用了一个文件来减少我的 Heroku slug 大小错误:编译的 slug 大小:2.5G 太大(最大为 500M),但似乎无法读取文件。.slug-post-clean

-----> POST BUILD CLEAN app detected
Location node-modules/.cache not found - ignoring
Location .DS_Store/ not found - ignoring
Location .vscode/ not found - ignoring
Location logs not found - ignoring
Location temp-file.tmp not found - ignoring
Location tsconfig.json not found - ignoring
Location README not found - ignoring
Location .git not found - ignoring
Location .vscode not found - ignoring
Location .idea/ not found - ignoring
Location node_modules not found - ignoring
Location node_modules/ not found - ignoring
Location src not found - ignoring
Removing directory public from slug
Location test not found - ignoring
Location spec not found - ignoring
Location tmp/cache/webpacker not found - ignoring

我的 VSCode,React + Django:

这是我的:.slug-post-clean

node-modules/.cache
.DS_Store/
.vscode/
logs
temp-file.tmp
tsconfig.json
README
.git
.vscode
.idea/
node_modules
node_modules/
src
public
test
spec
tmp/cache/webpacker
Heroku 大小 slug heroku-cli

评论

0赞 Chris 10/29/2023
.slug-post-clean不是土生土长的 Heroku 东西。您必须运行自定义构建包或其他东西。请在您的问题中编辑更多详细信息,以便我们理解并回答。
0赞 Chris 10/29/2023
(顺便说一句:看起来 Heroku 正在阅读该文件。您在问题开头显示的错误消息列出了您在文件中显示的相同模式。问题在于,无论读取该文件的非标准工具如何,都无法执行您期望的操作。

答: 暂无答案