dragotin / kraft

Kraft helps to handle your daily quotes and invoices in your small business.
http://volle-kraft-voraus.de
GNU General Public License v2.0
60 stars 19 forks source link

Sync button #101

Open ghost opened 3 years ago

ghost commented 3 years ago

I moved from sqlite to mysql remote. I use Kraft on 2 different computer. And sometimes I just would like to "push" the changes to the database. Or an automatic sync?

dragotin commented 3 years ago

A couple of questions:

  1. Do you use the two computers at the same time with two persons, or just either-or?
  2. Could you use one of the computers as "server" that is running when you work from the other one?

If you answer yes twice, you could install the mysql db on the "server" and let the other computer connect the database via network. For that, you just need to specify another host in the database config.

That is fine if that is in the same private network (ie. your office), but requires more consideration security wise if it is via internet.

ghost commented 3 years ago

Hi

I have mariadb running on proxmox and allowed for both ips/computer to have access to it. So I've just finished the move from sqlite to mysql. And I haven't imported everything. So I'll see how that works ...

Sometimes we would like to work at the same time on 2 different quotes. I haven't tried this yet and I'm still "scared" because of the item disappear https://github.com/dragotin/kraft/issues/102 problem. But I'm going to test that soon. I hope it's better with mysql instead of sqlite.

I'll let you know how that works.

BTW weasyprint is great! Thanks for that ;)

dragotin commented 2 years ago

Any news about your usecase here? How did your test go?