我正尝试使用这个确切的示例example,将extra_websocket_origins
设置为["*"]
(使用bokeh,flask和gunicorn框架),在Heroku上部署python网络应用程序
当我使用命令heroku local web
在本地运行该应用程序时,它可以完美运行。但是,当我部署它时,Web应用程序的bokeh部分不会显示。这是我运行heroku logs
2019-03-04T16:03:23.922688+00:00 app[web.1]: [2019-03-04 16:03:23 +0000] [4] [INFO] Starting gunicorn 19.9.0
2019-03-04T16:03:23.923316+00:00 app[web.1]: [2019-03-04 16:03:23 +0000] [4] [INFO] Listening at: http://0.0.0.0:35470 (4)
2019-03-04T16:03:23.923436+00:00 app[web.1]: [2019-03-04 16:03:23 +0000] [4] [INFO] Using worker: sync
2019-03-04T16:03:23.927569+00:00 app[web.1]: [2019-03-04 16:03:23 +0000] [10] [INFO] Booting worker with pid: 10
2019-03-04T16:03:24.413211+00:00 heroku[web.1]: State changed from starting to up
2019-03-04T16:03:26.362711+00:00 app[web.1]: 10.138.177.125 - - [04/Mar/2019:16:03:26 +0000] "GET / HTTP/1.1" 200 677 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7"
2019-03-04T16:03:26.359820+00:00 heroku[router]: at=info method=GET path="/" host=newtestscitime.herokuapp.com request_id=9ec030f0-d492-445f-89d5-bbdcd3157e3d fwd="162.213.133.192" dyno=web.1 connect=1ms service=285ms status=200 bytes=838 protocol=https
2019-03-04T16:03:30.187036+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2019-03-04T16:03:34.007602+00:00 heroku[router]: at=info method=GET path="/" host=newtestscitime.herokuapp.com request_id=2fd0f74e-0305-4486-b3c8-2333e5503950 fwd="162.213.133.192" dyno=web.1 connect=1ms service=2ms status=200 bytes=838 protocol=https
2019-03-04T16:03:34.009355+00:00 app[web.1]: 10.61.206.144 - - [04/Mar/2019:16:03:34 +0000] "GET / HTTP/1.1" 200 677 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7"
有什么想法吗?