mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 11:32:38 +02:00
chore(deploy): Spawn the websocket server in the docker image.
Checks if the `WEBSOCKET_ENABLED` is set to `True` and runs the websocket server accordingly.
This commit is contained in:
parent
d0d40cff99
commit
de1ddda0e8
1 changed files with 14 additions and 0 deletions
|
@ -10,3 +10,17 @@ enable-threads = true
|
|||
static-map = /static=/srv/umap/static
|
||||
static-map = /uploads=/srv/umap/uploads
|
||||
buffer-size = 32768
|
||||
|
||||
; Run the websocket server only when the env variable
|
||||
; WEBSOCKET_ENABLED is set to True.
|
||||
; This is enough for the base docker image, but does not
|
||||
; take into account the settings as the source of truth.
|
||||
if-env = WEBSOCKET_ENABLED
|
||||
websocket_enabled = %(_)
|
||||
endif =
|
||||
|
||||
if-opt = websocket_enabled=True
|
||||
print = Starting the Websocket Server (WEBSOCKET_ENABLED=%(websocket_enabled))
|
||||
attach-daemon = umap run_websocket_server
|
||||
endif =
|
||||
lazy-apps = true
|
Loading…
Reference in a new issue