cherrypy install and run - scottlove/MessageProducer GitHub Wiki
- Install cherrypy
- assumes python 3.3 installed
- sudo pip install cherrypy
- pscp -r -P 56204 *.* [email protected]://home/username/app/cherrypy/KafkaRestServer/
- create /etc/init/cherrypy.conf with kafkaserver.py
*putty into server *cd to KafkaRestServer *cp KafkaServer.py and application.ini ../ *edit application.ini to ensure environment is set correctly
accessing data
Make sure app is running on server http://kafkaserver.cloudapp.net:8083/api/words
Note on config:
In order to access external to azure port, make sure socket_host listens to 0.0.0.0
-
cherrypy.server.socket_port = 8083
-
cherrypy.server.socket_host = '0.0.0.0'