SQLALCHEMY_DATABASE_URI ignored?

11 views
Skip to first unread message

Karma Kolabor

unread,
May 12, 2016, 8:53:22 PM5/12/16
to airbnb_caravel
Hi,

I put SQLALCHEMY_DATABASE_URI in a caravel_config.py and started caravel from that directory - it reads some config settings, as I see when I change e.g. the CARAVEL_WEBSERVER_PORT, which then is used on "caravel runserver" - however the database uri seems to be ignored - I have to set it in the WebGUI, which starts up, allows to login, but does not find the sqlite.db.

Also the initializing sequence described in the installation docs seems to ignore that setting - there is still a /tmp/sqlite.db file created, with SQLALCHEMY_DATABASE_URI showing to a different file.

Is this already a known bug? should I just report that as an issue in github or is there anything I am not seeing?

Thanks again for your attention!

Karma

Maxime Beauchemin

unread,
May 12, 2016, 9:03:17 PM5/12/16
to airbnb_caravel
It may be related to the PYTHONPATH inferred from the working directory not being persisted through the subprocesses (there's 2 levels of suprocessing, Caravel triggering gunicorn, and gunicorn managing its own subprocesses). 

Can you try setting your PYTHONPATH explicitly to the folder that contains caravel_config.py? 

Max
Reply all
Reply to author
Forward
0 new messages