提问人:cher 提问时间:10/27/2023 最后编辑:Chrischer 更新时间:10/29/2023 访问量:17
Heroku 无法读取我的 .slug-post-clean 文件
Heroku can't read my .slug-post-clean file
问:
我使用了一个文件来减少我的 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
答: 暂无答案
评论
.slug-post-clean
不是土生土长的 Heroku 东西。您必须运行自定义构建包或其他东西。请在您的问题中编辑更多详细信息,以便我们理解并回答。