Files
cellxgene-gateway/cellxgene_gateway
Andy 08c546f40a Fix WSGI server initialization by extracting data source setup
Addresses the issue where Gunicorn/uWSGI servers import the gateway
module but never call main(), leaving item_sources empty and causing
the file crawler to fail.

Changes:
- Extract data source initialization into initialize_data_sources()
- Call initialization at module import time for WSGI compatibility
- Add _initialized flag to prevent double initialization
- Simplify main() to delegate to initialize_data_sources()

This ensures data sources are populated when running under WSGI servers
(Gunicorn, uWSGI) while maintaining backward compatibility with the
Flask development server.

Related to GitHub issues #33 and #92
2025-10-29 14:08:56 -04:00
..
2023-08-08 16:04:03 +01:00
2021-04-03 07:12:50 -04:00
2024-03-10 09:33:50 -04:00
2024-03-10 09:33:50 -04:00
2024-03-10 09:33:50 -04:00