Demo entry 6781062

weakfilescan

   

Submitted by anonymous on Jan 02, 2019 at 08:00
Language: Python 3. Code size: 371 Bytes.

# runserver.py

import os
from dotenv import load_dotenv, find_dotenv
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.wsgi import WSGIContainer

from app import create_app

load_dotenv(find_dotenv())

app = create_app()

http_server = HTTPServer(WSGIContainer(app))
http_server.listen(os.getenv('PORT'))
IOLoop.instance().start()

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).