How to deploy multiple bokeh servers in a flask app?

Hi,

How could I activate two or more bokeh servers simultaneously in a flask app? I’d like to make separate web pages containing different apps; then I could use two or even more apps in my website powered by flask.

Now, I could only activate one bokeh server, since the configuration command is :

[program:bokeh_serve]
command=/opt/envs/virtual/bin/bokeh serve myapp.py --allow-websocket-origin=[my ip address] --port=5006
directory=/opt/webapps/bokehflask
autostart=false
autorestart=true
startretries=3
user=nobody

The configuration of flask server is:

[program:flask]

command=/opt/envs/virtual/bin/gunicorn -b :8118 app:app

directory=/opt/webapps/bokehflask

user=nobody

autostart=true

autorestart=true

redirect_stderr=true

And the default configuration under nginx is :

upstream flask_siti {

    server 127.0.0.1:8118 fail_timeout=0;

}

server {

    listen 80 default;

    server_name flask;

    charset utf-8;

    client_max_body_size 75M;

    access_log /var/log/nginx/flask/access.log;

    error_log /var/log/nginx/flask/error.log;

    keepalive_timeout 5;

    location / {

            # checks for static file, if not found proxy to the app

            try_files $uri @proxy_to_app;

    }

    location @proxy_to_app {

            proxy_redirect off;

            proxy_set_header Host $http_host;

            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

            proxy_pass http://flask_siti;

    }

}

How to fix it? Many thanks?