circleous

Results 6 comments of circleous

Looks like this is for debian distro and its derivative only. In Arch it'd be as written in README, `wxgtk` and `webkitgtk2`.

Some fixes that comes to mind is by using `CREATE TABLE IF NOT EXISTS`, I think this is what SQLAlchemy use on their `checkfirst` param in `create_all` function.

Update: I just found that gunicorn does have server starting hooks that can run exactly once in master process, before child worker is spawned. https://docs.gunicorn.org/en/latest/settings.html#server-hooks ```python # gunicorn_config.py from sqlservice...

Created a relatively small test, ```python from sqlalchemy import create_engine, Column, Integer from sqlalchemy.orm import declarative_base engine = create_engine("sqlite:///db.sqlite3", echo=True, future=True) Base = declarative_base() class Test(Base): __tablename__ = "test" id...

Closing this since database migration shouldn’t be handled by app initiation anyway.

@th3gokul @th3sanjai any comment regarding this?