Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load Backend settings with qlever start or qlever ui #125

Open
CFGrote opened this issue Jan 15, 2025 · 3 comments
Open

Load Backend settings with qlever start or qlever ui #125

CFGrote opened this issue Jan 15, 2025 · 3 comments

Comments

@CFGrote
Copy link

CFGrote commented Jan 15, 2025

Hi,
for various reasons I have to restart our local qlever instance every night through a cron job. It would be great if I could apply custom backend settings
(slug, name for the dropdown, example queries, among others) from the CLI, as part of my cronjob.

I have exported the settings and I understand
how to import them through the admin UI. Is it possible to load them on the CL, as in

qlever ui --config-file config.json

or to refer to the settings in the Qleverfile?

any hint would be highly appreciated.

thanks!

@despens
Copy link

despens commented Feb 5, 2025

This would be great for sharing and tracking changes in settings.

@WolfgangFahl
Copy link

@CFGrote - what an excellent proposal. E.g. i want to set the description that way! I asume that would also be useful to split the settings into essential technical stuff and user configurable stuff so that we have a proper separation of these concerns.

@WolfgangFahl
Copy link

I am trying to enable backend with

docker exec -it qlever.ui.dblp bash -c "python manage.py configure olympics http://fur.bitplan.com:7019"
Make backend olympics the default and set URL to http://fur.bitplan.com:7019 ...
Hide all other backends (set sort key to 0) ...

which almost works except the Hide all other backends (set sort key to 0) ... which is exactly what i do not want i would be happy to have all backends but configure some to be local and then get the option to choose between local an public backends for comparison.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants