我试图通过Flynn设置Cabot,这基本上就像一个内部的heroku。 当我部署所有东西并尝试运行它时,我得到了这个异常。在
OfflineGenerationError: You have offline compression enabled but key "88dbbdf7c5e6ceca63a19023be40a840" is missing from offline manifest. You may need to run "python manage.py compress".
我读到here压缩根的路径可能不是绝对的,这可能是问题所在,但是当我检查时,我在日志中看到了这些。在我看来是绝对的。在
^{pr2}$我试着跑步管理.py在生成过程中压缩并得到以下错误。在
当我跑的时候管理.py压缩
Invalid template /app/.heroku/python/lib/python2.7/site-packages/django_filters/templates/django_filters/rest_framework/crispy_form.html: 'crispy_forms_tags' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_static
admin_urls
cache
compress
extra
i18n
jsonify
l10n
log
polymorphic_admin_tags
polymorphic_formset_tags
rest_framework
static
staticfiles
tz
Invalid template /app/.heroku/python/lib/python2.7/site-packages/rest_framework/templates/rest_framework/filters/django_filter_crispyforms.html: 'crispy_forms_tags' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_static
admin_urls
cache
compress
extra
i18n
jsonify
l10n
log
polymorphic_admin_tags
polymorphic_formset_tags
rest_framework
static
staticfiles
tz
Found 'compress' tags in:
/tmp/build/app/cabot/templates/cabotapp/shift_list.html
/tmp/build/app/cabot/templates/cabotapp/statuscheck_detail.html
/tmp/build/app/cabot/templates/registration/logout.html
/tmp/build/app/cabot/templates/cabotapp/about.html
/tmp/build/app/cabot/templates/cabotapp/setup.html
/tmp/build/app/cabot/templates/cabotapp/statuscheckresult_detail.html
/tmp/build/app/cabot/templates/cabotapp/instance_list.html
/tmp/build/app/cabot/templates/cabotapp/instance_confirm_delete.html
/tmp/build/app/cabot/templates/cabotapp/statuscheck_report.html
/tmp/build/app/cabot/templates/cabotapp/service_list.html
/tmp/build/app/cabot/templates/cabotapp/instance_detail.html
/tmp/build/app/cabot/templates/cabotapp/plugin_settings_form.html
/tmp/build/app/cabot/templates/cabotapp/alertpluginuserdata_form.html
/tmp/build/app/cabot/templates/registration/login.html
/tmp/build/app/cabot/templates/cabotapp/statuscheck_list.html
/tmp/build/app/cabot/templates/404.html
/tmp/build/app/cabot/templates/cabotapp/instance_form.html
/tmp/build/app/cabot/templates/cabotapp/subscriptions.html
/tmp/build/app/cabot/templates/cabotapp/service_detail.html
/tmp/build/app/cabot/templates/base.html
/tmp/build/app/cabot/templates/cabotapp/statuscheck_form.html
/tmp/build/app/cabot/templates/cabotapp/service_confirm_delete.html
/tmp/build/app/cabot/templates/cabotapp/statuscheck_confirm_delete.html
/tmp/build/app/cabot/templates/cabotapp/service_form.html
Compressing... CommandError: An error occurred during rendering /tmp/build/app/cabot/templates/cabotapp/shift_list.html: /bin/sh: 1: lessc: not found
奇怪的是,如果我在本地的docker上运行它,它运行得非常好。我试图在这里抛弃docker部分,并使用Procfile使用类似heroku的构建过程来运行。 不知道解决办法是什么。在
Docker和Heroku都有一个不同的基本机器。我相信您不是在Heroku上部署容器,而是在VM上部署,并且您正在docker上进行本地测试。它们都是不同的。在
假设这两种情况下的包管理器都是
apt
,那么应该执行命令在这两个地方,看看哪些包裹在heroku上丢失了。这会让你明白这个问题。在
相关问题 更多 >
编程相关推荐