Hi guys,
I am trying to deploy my Flask + Bokeh project on IIS now, so far, the job is partially done, I successfully deployed project on IIS. But, when I try to visit the websit, I get the error like this "
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."
when I try to have access to Bokeh server, I get error like this “”
I launch server use these statements:
@app.route(’/’, methods=[‘GET’])
def bkapp_page():
“”“Renders the home page.”""
url=“http://172.20.101.16:5006/”
session=pull_session(url=url, app_path="\DataVisualizationWebApp\bk_plotter")
script = server_document(url=url)
return render_template(“embed.html”, script=script, template=“Flask”)
``
def bk_worker():
server = Server({'/bk_plotter': bk_plter.plot_doc}, io_loop=IOLoop(), address="0.0.0.0", allow_websocket_origin=["172.20.101.16:8011"], host="http://172.20.101.16:5006")
server.start()
server.io_loop.start()
``
from os import environ
from DataVisualizationWebApp import app, views
from threading import Thread
import socket
from werkzeug.contrib.fixers import ProxyFix
Thread(target=views.bk_worker).start()
app.wsgi_app = ProxyFix(app.wsgi_app)
if name == ‘main’:
app.run(port=8080)
``
thanks for any feedback