whiskyechobravo / kerkoapp

A web application that provides a faceted search interface for bibliographies managed with Zotero.
https://whiskyechobravo.github.io/kerko/
BSD 3-Clause "New" or "Revised" License
68 stars 24 forks source link

502 Bad Gateway After adding custom template #46

Closed kmafoudji closed 8 months ago

kmafoudji commented 9 months ago

Hello Team, I followed the answers provided on post #40 to make slight changes to the kerkoapp home page. For example, to change the color of the nav bar, I did this:

What did I miss? Thank you for your help

kmafoudji commented 9 months ago

Hello team, Any Help on this ?

davidlesieur commented 9 months ago

You didn't show how the template was modified. Have you tried running the app with the flask --debug run command? The console should then display error messages, and that should help you understand what's happening.

kmafoudji commented 8 months ago

Thank you for your answer. I'm giving more détails here :

image image

[kerko.templates] layout = "custom-theme/layout.html.jinja2"

After that i runned the following commands : flask --debug kerko clean everything flask --debug kerko sync At the first time i get this message :

image

I runned a second time the sync command, which executed correctly until the end. I stopped and started kerko. On my page I got this :

image

Results after running flask --debug run :

image

It works if I comment the the 2 lines and restart kerko : [kerko.templates] layout = "custom-theme/layout.html.jinja2"

davidlesieur commented 8 months ago

Assuming that ~/kerkoapp is where the wsgi.py file is located, it looks like your template should be in ~/kerkoapp/kerkoapp/templates/custom-theme instead of ~/kerkoapp/custom-theme.

If that still doesn't work, then the idea of running the app in debug mode was to use the app at http://127.0.0.1:5000, and check the console for error messages (if you're running it on a remote server, you could use the curl command to perform requests). If there are no errors, then the issue probably lies in your service configuration, or your nginx configuration.

kmafoudji commented 8 months ago

It's working after i moved my template in the correct location : ~/kerkoapp/kerkoapp/templates/custom-them Thank you will go on my customization.

davidlesieur commented 8 months ago

Glad that it works! Wishing you all the best with the project.