2

在工作中,我们使用 s3cmd 将我们的静态文件发送到 S3。工作流程是:

1) collectstatic to a local folder
2) s3cmd into that folder to our S3 bucket

我们现在正在尝试使用 django-compress,所以现在我们的工作流程是:

1) compress to STATIC_ROOT folder
2) collectstatic (images, fonts etc.)
3) s3cmd to the S3 bucket

我们不使用压缩器推荐的 django-storages 的原因是我们在 CSS 上遇到了一些问题。令人惊讶的是,无论我们使用什么压缩解决方案,压缩文件中都缺少一些 css 规则。

OfflineGenerationError: You have offline compression enabled but key
"d345e38725a478c7db70d8e23d4c771b" is missing from offline manifest. 
You may need to run "python manage.py compress".

完整的追溯可以在这里找到。有谁知道这里发生了什么?非常欢迎提出改进我们的压缩和上传工作流程的建议。

4

0 回答 0