Created
September 19, 2014 11:10
-
-
Save pyghassen/bf557a7a4710faf7f602 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import tornado.ioloop | |
import tornado.web | |
from tornado.web import Application | |
from .urls import urls_map | |
settings = {'auto_reload': True, 'debug': True} | |
application = Application(urls_map, **settings) | |
if __name__ == "__main__": | |
print("API RUNNING ON PORT 8888") | |
application.listen(9999) | |
logging.debug("API server is running on port 8888") | |
ioloop_instance = tornado.ioloop.IOLoop.instance() | |
ioloop_instance.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment