Skip to content

Instantly share code, notes, and snippets.

@pyghassen
Created September 19, 2014 11:10
Show Gist options
  • Save pyghassen/bf557a7a4710faf7f602 to your computer and use it in GitHub Desktop.
Save pyghassen/bf557a7a4710faf7f602 to your computer and use it in GitHub Desktop.
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