Files
enterprise_digital-platform/portal/run.py
T
ske087 0aefadbfd8 NetworkView: API routing fix, logout button, audit trail, port/notes editor tracking
- Fix frontend API base path (VITE_API_BASE env var, GraphPage hardcoded /api)
- Add logout button to NetworkView sidebar (clears portal SSO)
- Add AuditTrail component: inline change history on all entity pages
- DB migration: add updated_at, last_edited_by to ports table
- DB migration: add notes_last_edited_by, notes_updated_at to all entity tables
- Backend: track actor on port create/update; notes editor on entity PUT
- Frontend: extend types, MarkdownEditor shows last editor, port modal/list show last editor
- Fix port CREATE TABLE definition to include new columns upfront
- Add try/catch in handleSavePort to surface API errors in modal
2026-05-10 23:10:02 +03:00

9 lines
266 B
Python

import os
from app import create_app
app = create_app(os.environ.get('FLASK_ENV', 'production'))
if __name__ == '__main__':
port = int(os.environ.get('PORT', 5001))
app.run(host='127.0.0.1', port=port, debug=(os.environ.get('FLASK_ENV') == 'development'))