server¶
Run the local Openbase API and WebSocket server.
Usage¶
Options¶
| Option | Default | Description |
|---|---|---|
--host TEXT |
127.0.0.1 |
Bind host |
--port INTEGER |
7999 |
Bind port |
--workers INTEGER |
1 |
Gunicorn worker count |
--reload |
false |
Enable auto-reload |
--skip-migrations |
false |
Skip Django migrations |
--skip-collectstatic |
false |
Skip static collection |
Startup Sequence¶
By default server does the following:
- Sets Django environment.
- Creates data directory (
~/.openbaseby default). - Runs migrations.
- Runs
collectstaticinto~/.openbase/staticfiles. - Builds the console bundle.
- Starts Gunicorn with Uvicorn workers.
Example¶
Related Endpoints¶
- REST API:
http://<host>:<port>/api/... - WebSockets:
ws://<host>:<port>/ws/threads/... - Console SPA:
http://<host>:<port>/