python - Offline Generation Error - Django compressor -


i trying setup cabot via flynn, in-house heroku. when deploy eveything , try run it, exception.

offlinegenerationerror: have offline compression enabled key "88dbbdf7c5e6ceca63a19023be40a840" missing offline manifest. may need run "python manage.py compress". 

i read here path compress_root might not absolute, have been problem, when checked, got these in logs. seems absolute me.

[2017-07-28t13:50:24.532104z]    ('\n \n \n \n static & ccompress ', '/app/cabot/collectedstatic/', '\n \n \n \n ') [2017-07-28t13:50:24.532943z]    ('\n \n \n \n static & ccompress url ', '/static/', '\n \n \n \n ') 

i tried running manage.py compress during build process , got following errors.

when ran manage.py compress

   invalid template /app/.heroku/python/lib/python2.7/site-packages/django_filters/templates/django_filters/rest_framework/crispy_form.html: 'crispy_forms_tags' not registered tag library. must 1 of:    admin_list    admin_modify    admin_static    admin_urls    cache    compress       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' not registered tag library. must 1 of:    admin_list    admin_modify    admin_static    admin_urls    cache    compress       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: error occurred during rendering /tmp/build/app/cabot/templates/cabotapp/shift_list.html: /bin/sh: 1: lessc: not found 

weird thing , if run on docker on local, runs perfectly. trying ditch docker part here , run using heroku build process using procfile. not sure solution be.

docker , heroku both have different base machines. believe not deploying container on heroku on vm , testing locally on docker. both different.

assuming package manager in both cases apt, should execute command

apt list --installed 

on both place , see packages missing on heroku. , idea of issue.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -