word2vec-explorer icon indicating copy to clipboard operation
word2vec-explorer copied to clipboard

need to set server.socket_host when running inside docker

Open ckhung opened this issue 7 years ago • 0 comments

If you run word2vec-explorer inside a docker, you may not be able to view it from the host. That's because by default CherryPy binds to 27.0.0.1, allowing access only from localhost (the docker container). For other hosts to see the service, you need to add

cherrypy.config.update( {'server.socket_host': '0.0.0.0'} )

near the end of explore, just before cherrypy.quickstart(app)

ckhung avatar Jul 09 '17 12:07 ckhung