-
Notifications
You must be signed in to change notification settings - Fork 33
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
Official way to run the app as a web server #243
Comments
It would be awesome if self-hosting Kintree would be possible. I would go into this solution once it is supported. |
Hello there, thank you for your interest in Ki-nTree 😃 Yes it is possible to run the app in the browser but I am not sure about self-hosting it. However I am open to hear any solution you may find and, if not too much trouble, add it as a feature and/or in the documentation 😃 |
Hi, I can confirm that following the flet self-hosting guide we are succesfully running the kintree app as a webserver since quite a while. However, we are only using kintree for managing an InvenTree server, we are not managing a KiCad library, which as you've stated could add some trouble due to file web access. Sadly it looks like it is kind of unstable, as after a while kintree seems to crash and restarting the Kintree service via systemctl seems to be necessary. The errors reported by systemctl status are quite random each time, so for now we were unable to find a precise.
Modifying the kintree source code is actually not necessary, the Of course, disabling the Kintree user setting |
Thanks for the report @LukeARESYS. It's great to know Ki-nTree can run in the browser, although unstable. Do you have multiple people use it simultaneously? |
Do you have a recommended method for running the KinTree app as a web server? We would like to have this functionality to be able to run this plugin on the same server where we're hosting Inventree, in this way we can ensure every user can access a correctly configured KinTree instance.
I've tried following the official Flet self hosting guide and I had mixed results: for various reasons I had to install KinTree on three different machines and the same setup worked on two machines only, but making it work was kind of a hassle.
I've installed kintree as sudo using pip, I succesfully setup nginx as described in the flet guide and I've created a systemd unit file like this:
I then had to modify the kintree_gui.py file by changing
def main(view='flet_app'):
todef main(view='browser'):
.This is just a rough description of the steps I've followed just to give you an idea. Do you think these steps are recommended or do you suggest an alternative method?
If you need a more precise step-by-step description of the issues I've encountered I could try installing kintree again on a fresh machine.
The text was updated successfully, but these errors were encountered: