Jun 27 MT-4 fix wsgi_panel
This commit is contained in:
@@ -4,9 +4,9 @@ wsgi_panel.py
|
|||||||
WSGI entry point for the JQC superadmin control panel (MT-4).
|
WSGI entry point for the JQC superadmin control panel (MT-4).
|
||||||
|
|
||||||
Serve with a dedicated Gunicorn process + systemd unit:
|
Serve with a dedicated Gunicorn process + systemd unit:
|
||||||
gunicorn --workers 2 --bind 127.0.0.1:5001 wsgi_panel:panel_app
|
gunicorn --workers 2 --bind 127.0.0.1:8001 control.panel.wsgi_panel:panel_app
|
||||||
|
|
||||||
Nginx proxies admin.jqc.app → 127.0.0.1:5001 (see deploy notes in CLAUDE.md).
|
Nginx proxies admin.jqc.app → 127.0.0.1:8001 (see deploy notes in CLAUDE.md).
|
||||||
|
|
||||||
Required env vars (same /etc/jqc/control.env loaded by the main app):
|
Required env vars (same /etc/jqc/control.env loaded by the main app):
|
||||||
CONTROL_DATABASE_URL
|
CONTROL_DATABASE_URL
|
||||||
@@ -21,4 +21,4 @@ from control.panel import create_panel_app
|
|||||||
panel_app = create_panel_app()
|
panel_app = create_panel_app()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
panel_app.run(host='127.0.0.1', port=8001, debug=False)
|
panel_app.run(host='127.0.0.1', port=8001, debug=False)
|
||||||
Reference in New Issue
Block a user